Ivan Shmakov
2013-02-09 19:11:18 UTC
[Cross-posting to news:alt.comp.lang.shell.unix.bourne-bash.]
line?
The last command's exit code and \$, I guess?
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/.
[04:46:03][localhost:/home/aragorn] [0][aragorn][$] >
What an evil PS1 you have! What mean those '[0]' and '[$]' in secondline?
p. s. I have PS1 like this too. But it's for logins with no
$DISPLAY.
FWIW, I'm using a simpler prompt:$DISPLAY.
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
FSF associate member #7257