.profile: Remove zsh workaround

This commit is contained in:
Salt 2018-08-28 22:07:15 -05:00
parent 167571f31a
commit 19a0061569

View File

@ -94,13 +94,7 @@ _ps1() {
hostname_prefix="${fg_bold}${fg_red}`hostname`${r}${fg_red}:"
fi
# Show the tilde instead of $HOME
cpwd=""
# Thanks ZSH
if ! [ "$ZSH_NAME" ]; then
cpwd="${PWD/#$HOME/\~}"
else
cpwd="${PWD/#$HOME/~}"
fi
cpwd="${PWD/#$HOME/\~}"
# Alert us if the last command failed
fail=""
if ! [ "$exitcode" = "0" ]; then