Alter the zshrc to load powerline from initscript
This commit is contained in:
parent
a5e19b0898
commit
8b874e6e3e
1 changed files with 3 additions and 19 deletions
22
zshrc
22
zshrc
|
|
@ -58,27 +58,11 @@ fi
|
|||
|
||||
. ~/bin/aliases
|
||||
|
||||
prompt fire 125 234 084 054 020
|
||||
#prompt fire 178 142 106 070 034
|
||||
prompt steeef
|
||||
|
||||
# powerline
|
||||
#source ~/.local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
|
||||
function powerline_precmd() {
|
||||
PS1="$(~/sturf/banga-powerline/powerline-shell.py $? --shell zsh 2> /dev/null)"
|
||||
}
|
||||
|
||||
function install_powerline_precmd() {
|
||||
for s in "${precmd_functions[@]}"; do
|
||||
if [ "$s" = "powerline_precmd" ]; then
|
||||
return
|
||||
fi
|
||||
done
|
||||
precmd_functions+=(powerline_precmd)
|
||||
}
|
||||
|
||||
if [ "$TERM" != "linux" ]; then
|
||||
install_powerline_precmd
|
||||
fi
|
||||
|
||||
source ~/bin/powerline_init
|
||||
|
||||
alias t=todo.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue