1
0
Fork 0

a better way to tell bash from zsh

This commit is contained in:
Von Random 2019-01-31 19:28:18 +03:00
parent f5044bdda8
commit 8ffaf95b9d

4
bashrc
View file

@ -27,9 +27,9 @@ prompt_command()
(*) printf '\033]0;%s\007' "${HOSTNAME%%.*}";;
esac
((UID)) && clr=8 || clr=1
echo "[ bash-$BASH_VERSINFO | $(colorize "$clr" $USER) $HOSTNAME:$(colorize 8 "$(pwd)") ]"
echo "[ $(colorize "$clr" $USER) $HOSTNAME:$(colorize 8 "$(pwd)") ]"
}
PS1='> '
PS1='\$ '
PROMPT_COMMAND=prompt_command
# }}}
# {{{ aliases