--- share/skel/dot.shrc (revision 216473) +++ share/skel/dot.shrc (working copy) @@ -14,11 +14,11 @@ # umask 022 # Enable the builtin emacs(1) command line editor in sh(1), -# e.g. C-a -> beginning-of-line. -set -o emacs +# e.g. C-a -> beginning-of-line. (default for interactive shell) +# set -o emacs -# Uncomment this and comment the above to enable the builtin vi(1) command -# line editor in sh(1), e.g. ESC to go into visual mode. +# Enable the builtin vi(1) command line editor in sh(1), +# e.g. ESC to go into visual mode. # set -o vi @@ -36,12 +36,8 @@ # alias rm='rm -i' -# # set prompt: ``username@hostname$ '' -# PS1="`whoami`@`hostname | sed 's/\..*//'`" -# case `id -u` in -# 0) PS1="${PS1}# ";; -# *) PS1="${PS1}$ ";; -# esac +# # set prompt: ``[username@hostname directory]$ '' +# PS1="[$(id -un)@\h \w]\\$ " # search path for cd(1) # CDPATH=.:$HOME