.profile: Give bash PS1 a CWD
This commit is contained in:
parent
54eb4c8f55
commit
24382972ac
3
.profile
3
.profile
@ -165,6 +165,7 @@ alias waitwhat='echo $?'
|
||||
_ps1() {
|
||||
exitcode="$?"
|
||||
r="\e[0m"
|
||||
fg_blue="\e[34m"
|
||||
fg_red="\e[31m"
|
||||
fg_green="\e[32m"
|
||||
fg_yellow="\e[33m"
|
||||
@ -182,7 +183,7 @@ _ps1() {
|
||||
# Change PWD color depending on the shell
|
||||
case $0 in
|
||||
*bash)
|
||||
prefix="${prefix}${fg_yellow}"
|
||||
prefix="${prefix}${fg_blue}"
|
||||
;;
|
||||
/bin/ksh)
|
||||
prefix="${prefix}${fg_green}"
|
||||
|
Loading…
Reference in New Issue
Block a user