Created
March 27, 2013 13:55
-
-
Save avnik/5254329 to your computer and use it in GitHub Desktop.
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
case "$ZSH_VERSION" in | |
4.3.1*|4.3.[789]|4.[456789]*) | |
autoload -Uz vcs_info;; | |
*) | |
echo "Upgrade your zsh!";; | |
esac | |
case $TERM in | |
dumb) | |
export PROMPT="%#" | |
;; | |
*) | |
case "$ZSH_VERSION" in | |
4.3.1*|4.3.[789]|4.[456789]*) | |
export PROMPT="[%(!.%S.)%n%(!.%s.)@%m:%y]%~%(?..%B%?%b)%70(l| | |
|)%(1v.%F{blue}%1v%f.)%B%#%b ";; | |
*) | |
export PROMPT="[%(!.%S.)%n%(!.%s.)@%m:%y]%~%(?..%B%?%b)%70(l| | |
|)%B%#%b ";; | |
esac | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment