Don't show the full path name any more, because it can become very long
and too wide for an 80 character terminal ...
fi
# Shell prompt
-PS1_Path() {
- P="${PWD/$HOME/~}"
- echo "${P/???????????????????????????????*/${P:0:8}...${P: -20}}"
-}
-
PS1="${COLOR_PREPOSTTXT}${PS1_BEGIN:-<}"
[ "$LOGNAME" = "root" ] \
|| PS1="${PS1}${COLOR_USER}\u${COLOR_AT}@"
PS1="${PS1}${COLOR_HOST}\h"
PS1="${PS1}${COLOR_COLON}:"
-PS1="${PS1}${COLOR_PATH}\$(PS1_Path) "
+PS1="${PS1}${COLOR_PATH}\W "
PS1="${PS1}${COLOR_HISTORY}\!"
PS1="${PS1}${COLOR_PREPOSTTXT}${PS1_END:->}${COLOR_RESET} "
[ "$LOGNAME" = "root" ] \