Revert ".profile: Change suffix assignment for PS1"

This reverts commit 9813277aba.
This commit is contained in:
Salt 2018-10-07 00:09:56 -05:00
parent 6126d07df3
commit ca5cc3de19

View File

@ -98,19 +98,19 @@ _ps1() {
hostname_prefix="${fg_bold}${fg_red}`hostname`${r}${fg_red}:" hostname_prefix="${fg_bold}${fg_red}`hostname`${r}${fg_red}:"
fi fi
# Change $ color depending on shell # Change $ color depending on shell
suffix="${fg_green}" cashcolor="${fg_green}"
case $0 in case $0 in
bash) bash)
suffix="${fg_blue}%%" cashcolor="${fg_blue}"
;; ;;
ksh) ksh)
suffix="${fg_yellow}$" cashcolor="${fg_yellow}"
;; ;;
sh) sh)
suffix="${fg_grey}$" cashcolor="${fg_grey}"
;; ;;
*) *)
suffix="${fg_green}$" cashcolor="${fg_green}"
;; ;;
esac esac
# Show the tilde instead of $HOME # Show the tilde instead of $HOME
@ -120,7 +120,7 @@ _ps1() {
if ! [ "$exitcode" = "0" ]; then if ! [ "$exitcode" = "0" ]; then
fail="${fg_bold}${fg_red}?" fail="${fg_bold}${fg_red}?"
fi fi
printf "[${hostname_prefix}${cpwd}${r}]${fail}${r}${suffix}${r} " printf "[${hostname_prefix}${cpwd}${r}]${fail}${r}${cashcolor}\$${r} "
} }
if ! [ "$ZSH_NAME" ]; then if ! [ "$ZSH_NAME" ]; then