zsh: Cull OMZ

This commit is contained in:
Salt 2018-08-21 19:03:15 -05:00
parent 2e7ad97ed6
commit 9a2da188a9
2 changed files with 10 additions and 2 deletions

@ -1 +1 @@
Subproject commit a3b47c5b8db5b8a7ac6a84fb800a468c0e18bdf7
Subproject commit 617afd0d5a92e3b5bab4048e4e1c231b3c09665e

View File

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