Created
December 20, 2019 16:44
-
-
Save hhoover/ae0a170b3f3af2c37fcca517189e48b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function powerline_precmd() { | |
PS1="$($GOPATH/bin/powerline-go -newline -modules docker,kube,aws,git,venv,ssh,cwd,perms,hg,jobs,exit,root,vgo -error $? -shell zsh -mode flat)" | |
} | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment