Skip to content

Instantly share code, notes, and snippets.

@hhoover
Created December 20, 2019 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhoover/ae0a170b3f3af2c37fcca517189e48b7 to your computer and use it in GitHub Desktop.
Save hhoover/ae0a170b3f3af2c37fcca517189e48b7 to your computer and use it in GitHub Desktop.
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