mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Merge bf5a53e2ea into caa15548c1
This commit is contained in:
commit
f4616a3881
2 changed files with 11 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# get the name of the branch we are on
|
# get the name of the branch we are on
|
||||||
function rvm_prompt_info() {
|
function rvm_prompt_info() {
|
||||||
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
|
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
|
||||||
echo "($ruby_version)"
|
echo "$ZSH_THEME_RVM_PROMPT_PREFIX$ruby_version$ZSH_THEME_RVM_PROMPT_SUFFIX"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
10
themes/pete.zsh-theme
Normal file
10
themes/pete.zsh-theme
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PROMPT='(%w%t) [%{$fg[blue]%}%n%{$reset_color%}@%{$fg[green]%}%M%{$reset_color%}] %{$fg[yellow]%}%d%{$reset_color%}$(git_prompt_info)$(rvm_prompt_info) %(!.#.$)%{$reset_color%} '
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg_bold[red]%}✗%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg_bold[green]%}✓%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg_bold[cyan]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%})"
|
||||||
|
ZSH_THEME_RVM_PROMPT_PREFIX=" (%{$fg_bold[green]%}"
|
||||||
|
ZSH_THEME_RVM_PROMPT_SUFFIX="%{$reset_color%})"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue