Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #7281

PS1

Path csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Ivan Shmakov <oneingray@gmail.com>
Newsgroups alt.comp.lang.shell.unix.bourne-bash, comp.os.linux.misc
Subject PS1
Date Sat, 09 Feb 2013 19:11:18 +0000
Organization Aioe.org NNTP Server
Lines 29
Message-ID <87txpl7161.fsf_-_@violet.siamics.net> (permalink)
References <iscott.2xmu@sempco.uucp> <1f80d1f3-3202-441e-ab99-4840bc344c87@googlegroups.com> <kes7fo$fmi$2@dont-email.me> <keu953$gdm$1@dont-email.me> <keufu4$m5s$1@dont-email.me> <alpine.LNX.2.02.1302081746130.4076@darkstar.example.org> <kf4as3$kkv$1@dont-email.me> <slrnkhbhcq.88s.ibuprofin@fermi.phx.az.us> <kf4gqt$9bu$3@dont-email.me> <slrnkhccns.t58.whynot@orphan.zombinet>
NNTP-Posting-Host 41vvMPMLxfEjizuK6lSUHw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Complaints-To abuse@aioe.org
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
X-Notice Filtered by postfilter v. 0.8.2
Cancel-Lock sha1:8GFR1h4lrXRYJHiM0fDLZry1Pg8=
Xref csiph.com comp.os.linux.misc:7281

Cross-posted to 2 groups.

Show key headers only | View raw


>>>>> Eric Pozharski <whynot@pozharski.name> writes:
>>>>> with <kf4gqt$9bu$3@dont-email.me> Aragorn wrote:

	[Cross-posting to news:alt.comp.lang.shell.unix.bourne-bash.]

 >> [04:46:03][localhost:/home/aragorn] [0][aragorn][$] >

 > What an evil PS1 you have!  What mean those '[0]' and '[$]' in second
 > line?

	The last command's exit code and \$, I guess?

 > p. s.  I have PS1 like this too.  But it's for logins with no
 > $DISPLAY.

	FWIW, I'm using a simpler prompt:

PS1='${debian_chroot:+($debian_chroot) }[\u@\h] \W\$ '

	Or, should I need timestamps:

PS1='${debian_chroot:+($debian_chroot) }[\u@\h] $(printf x%08x "$(date +%s)") \W\$ ' 

	\W is quite apt for me, given that I may occasionally have to
	visit something like /home/public/users/ivan/download/svn-sync/,
	or /home/private/users/ivan/private/slides/debian-apt-2012/.

-- 
FSF associate member #7257

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Help! zsmith@gmail.com - 2013-02-05 13:59 -0800
  Re: Help! The Natural Philosopher <tnp@invalid.invalid> - 2013-02-05 22:31 +0000
    Re: Help! Matthew of Boswell <mordervomubel+usenet@lockmail.us> - 2013-02-05 20:18 -0500
      Re: Help! The Natural Philosopher <tnp@invalid.invalid> - 2013-02-06 01:39 +0000
      Re: Help! irscott@gmail.com - 2013-02-06 11:27 -0800
        Re: Help! J G Miller <miller@yoyo.ORG> - 2013-02-06 20:56 +0000
        Re: Help! "Aaron W.  Hsu" <arcfide@sacrideo.us> - 2013-02-06 22:23 -0500
        Re: Help! Matthew of Boswell <mordervomubel+usenet@lockmail.us> - 2013-02-08 17:58 -0500
  Necroposting yet again from GOOGLE groups -- Re: Help! J G Miller <miller@yoyo.ORG> - 2013-02-06 00:18 +0000
    Re: Necroposting yet again from GOOGLE groups -- Re: Help! Chick Tower <c.tower@deadspam.com> - 2013-02-06 18:58 +0000
      Re: Necroposting yet again from GOOGLE groups -- Re: Help! J G Miller <miller@yoyo.ORG> - 2013-02-06 20:54 +0000
        Re: Necroposting yet again from GOOGLE groups -- Re: Help! Matthew of Boswell <mordervomubel+usenet@lockmail.us> - 2013-02-08 17:35 -0500
        Re: Necroposting yet again from GOOGLE groups -- Re: Help! Michael Black <et472@ncf.ca> - 2013-02-08 17:46 -0500
          Re: Necroposting yet again from GOOGLE groups -- Re: Help! J G Miller <miller@yoyo.ORG> - 2013-02-09 02:01 +0000
          Re: Necroposting yet again from GOOGLE groups -- Re: Help! Aragorn <stryder@telenet.be.invalid> - 2013-02-09 03:05 +0100
            Re: Necroposting yet again from GOOGLE groups -- Re: Help! Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2013-02-09 03:41 +0000
              Re: Necroposting yet again from GOOGLE groups -- Re: Help! Aragorn <stryder@telenet.be.invalid> - 2013-02-09 04:47 +0100
                Re: Necroposting yet again from GOOGLE groups -- Re: Help! Eric Pozharski <whynot@pozharski.name> - 2013-02-09 13:29 +0200
                PS1 Ivan Shmakov <oneingray@gmail.com> - 2013-02-09 19:11 +0000
                Re: PS1 Aragorn <stryder@telenet.be.invalid> - 2013-02-10 03:12 +0100
                Re: Necroposting yet again from GOOGLE groups -- Re: Help! Aragorn <stryder@telenet.be.invalid> - 2013-02-10 03:08 +0100
                Re: Necroposting yet again from GOOGLE groups -- Re: Help! Eric Pozharski <whynot@pozharski.name> - 2013-02-10 12:49 +0200

csiph-web