Created
March 23, 2012 11:10
-
-
Save ulfst/2169655 to your computer and use it in GitHub Desktop.
Ulfenstein ZSH Theme
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 git_prompt_info() { | |
| # ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| # echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
| # } | |
| function get_pwd() { | |
| print -D $PWD | |
| } | |
| # if [ "$(whoami)" = "root" ] | |
| # then CARETCOLOR="red" | |
| # else CARETCOLOR="blue" | |
| # fi | |
| # The prompt | |
| PROMPT=' | |
| $fg[green]%n@$fg[cyan]%m%{$reset_color%} : $fg[yellow]$(get_pwd)%{$reset_color%} | |
| →%{$reset_color%} ' | |
| # The right-hand prompt | |
| RPROMPT='${time} %{$fg[yellow]%}$(git_prompt_info)%{$reset_color%} $(git_prompt_status)%{$reset_color%}' | |
| # # local time, color coded by last return code | |
| time_enabled="%(?.%{$fg[green]%}.%{$fg[red]%})%*%{$reset_color%}" | |
| time_disabled="%{$fg[green]%}%*%{$reset_color%}" | |
| time=$time_enabled | |
| ZSH_THEME_GIT_PROMPT_PREFIX="[git:" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="]$reset_color" | |
| ZSH_THEME_GIT_PROMPT_DIRTY="$fg[red] ⚡" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="$fg[green] ✔" | |
| ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚" | |
| ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹" | |
| ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖" | |
| ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜" | |
| ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═" | |
| ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment