Skip to content

Instantly share code, notes, and snippets.

@tmccombs
Last active October 26, 2018 18:46
Show Gist options
  • Save tmccombs/3c0ca0c12f26f9b1dd258454431b9373 to your computer and use it in GitHub Desktop.
Save tmccombs/3c0ca0c12f26f9b1dd258454431b9373 to your computer and use it in GitHub Desktop.
Thayne's prompt theme
# vim: ft=zsh
#
# Thayne's custom prompt
prompt_thayne_setup () {
autoload -Uz vcs_info
local c=(cyan magenta)
PS1="%F{$c[1]}[%*]%(1V.%F{green}%1v.) %F{$c[1]}%-1<…<%~ %(?..%F{red}%B(%?%)%b)%<<
%f%h %(#.%F{red}#.%F{green}⮚)%f "
add-zsh-hook precmd prompt_thayne_precmd
}
prompt_thayne_precmd () {
setopt noxtrace noksharrays localoptions
vcs_info prompt
psvar[1]="$vcs_info_msg_0_"
}
prompt_thayne_setup "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment