zsh: Cull OMZ
This commit is contained in:
parent
2e7ad97ed6
commit
9a2da188a9
@ -1 +1 @@
|
|||||||
Subproject commit a3b47c5b8db5b8a7ac6a84fb800a468c0e18bdf7
|
Subproject commit 617afd0d5a92e3b5bab4048e4e1c231b3c09665e
|
10
.profile
10
.profile
@ -94,7 +94,13 @@ _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="${PWD/#$HOME/\~}"
|
cpwd=""
|
||||||
|
# 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
|
||||||
@ -106,5 +112,7 @@ _ps1() {
|
|||||||
if ! [ "$ZSH_NAME" ]; then
|
if ! [ "$ZSH_NAME" ]; then
|
||||||
# I've got a different ZSH theme
|
# I've got a different ZSH theme
|
||||||
export PS1='`_ps1`'
|
export PS1='`_ps1`'
|
||||||
|
else
|
||||||
|
export PS1='$(_ps1)'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user