zsh: Cull OMZ
This commit is contained in:
Submodule .local/bin updated: a3b47c5b8d...617afd0d5a
10
.profile
10
.profile
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user