.profile: Remove zsh workaround
This commit is contained in:
parent
167571f31a
commit
19a0061569
8
.profile
8
.profile
@ -94,13 +94,7 @@ _ps1() {
|
|||||||
hostname_prefix="${fg_bold}${fg_red}`hostname`${r}${fg_red}:"
|
hostname_prefix="${fg_bold}${fg_red}`hostname`${r}${fg_red}:"
|
||||||
fi
|
fi
|
||||||
# Show the tilde instead of $HOME
|
# Show the tilde instead of $HOME
|
||||||
cpwd=""
|
cpwd="${PWD/#$HOME/\~}"
|
||||||
# Thanks ZSH
|
|
||||||
if ! [ "$ZSH_NAME" ]; then
|
|
||||||
cpwd="${PWD/#$HOME/\~}"
|
|
||||||
else
|
|
||||||
cpwd="${PWD/#$HOME/~}"
|
|
||||||
fi
|
|
||||||
# Alert us if the last command failed
|
# Alert us if the last command failed
|
||||||
fail=""
|
fail=""
|
||||||
if ! [ "$exitcode" = "0" ]; then
|
if ! [ "$exitcode" = "0" ]; then
|
||||||
|
Reference in New Issue
Block a user