mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge eba5bd7e94 into 291e96dcd0
This commit is contained in:
commit
c7127980c8
1 changed files with 26 additions and 0 deletions
26
themes/kev.zsh-theme
Normal file
26
themes/kev.zsh-theme
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# 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%}"
|
||||||
|
|
||||||
|
# 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)%{$reset_color%}\$(git_prompt_status)\$(git_prompt_ahead)%{$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]%} ⚡"
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[blue]%} ⬆"
|
||||||
|
|
||||||
|
# Put it all together!
|
||||||
|
PROMPT="
|
||||||
|
$KEV_CURRENT_LOCA_$KEV_GIT_STATUS_$KEV_CURRENT_RUBY_
|
||||||
|
[%n@%m]$ "
|
||||||
Loading…
Add table
Add a link
Reference in a new issue