Last active
October 26, 2018 18:46
-
-
Save tmccombs/3c0ca0c12f26f9b1dd258454431b9373 to your computer and use it in GitHub Desktop.
Thayne's prompt theme
This file contains 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
# 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