.profile: Give bash PS1 a CWD

This commit is contained in:
Salt 2018-12-01 16:48:24 -06:00
parent 54eb4c8f55
commit 24382972ac

View File

@ -165,6 +165,7 @@ alias waitwhat='echo $?'
_ps1() { _ps1() {
exitcode="$?" exitcode="$?"
r="\e[0m" r="\e[0m"
fg_blue="\e[34m"
fg_red="\e[31m" fg_red="\e[31m"
fg_green="\e[32m" fg_green="\e[32m"
fg_yellow="\e[33m" fg_yellow="\e[33m"
@ -182,7 +183,7 @@ _ps1() {
# Change PWD color depending on the shell # Change PWD color depending on the shell
case $0 in case $0 in
*bash) *bash)
prefix="${prefix}${fg_yellow}" prefix="${prefix}${fg_blue}"
;; ;;
/bin/ksh) /bin/ksh)
prefix="${prefix}${fg_green}" prefix="${prefix}${fg_green}"