mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
More git info on propmt for Theme 'kev'
This commit is contained in:
parent
6c7c80a760
commit
5f9d470d38
1 changed files with 12 additions and 10 deletions
|
|
@ -1,20 +1,22 @@
|
|||
# Grab the current version of ruby and the current gemset in use (via RVM): ruby-1.9.2@foo
|
||||
KEV_CURRENT_RUBY_=" %{$fg_bold[red]%}♦ \$(~/.rvm/bin/rvm-prompt v g)%{$reset_color%}"
|
||||
KEV_CURRENT_RUBY_=" %{$fg_bold[red]%}♦ \$(~/.rvm/bin/rvm-prompt v g)%{$reset_color%}"
|
||||
|
||||
# Grab the current filepath, use shortcuts: ~/Desktop
|
||||
# Append the current git branch, if in a git repository
|
||||
KEV_CURRENT_LOCA_="%{$fg[green]%}%~%{$reset_color%}"
|
||||
|
||||
# Grab the current git status
|
||||
KEV_GIT_STATUS_=" \$(git_prompt_info)"
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}(%{$fg[white]%}± "
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[green]%})%{$reset_color%}"
|
||||
# Do nothing if the branch is clean (no changes).
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}"
|
||||
# Add a red ⚡ if the branch is dirty
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}%{$fg[red]%}⚡"
|
||||
# Add a yello ? if the branch is untracked
|
||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[yellow]%}?"
|
||||
KEV_GIT_STATUS_=" \$(git_prompt_info)%{$reset_color%}\$(git_prompt_status)%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}±"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ☀"
|
||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[yellow]%} ✭"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ⚒"
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✚"
|
||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
|
||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➜"
|
||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ⚡"
|
||||
|
||||
# Put it all together!
|
||||
PROMPT="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue