mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Cleanup of the jtzemp theme also added rvm_with_gemset function to the prompt so I know which gemset is in use.
This commit is contained in:
parent
bef797c23c
commit
deb452e823
1 changed files with 3 additions and 4 deletions
|
|
@ -3,8 +3,8 @@
|
||||||
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
|
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
|
||||||
JTZEMP_CURRENT_TIME_="%{$fg[blue]%}[%{$fg[red]%}%T%{$fg[blue]%}]%{$reset_color%}"
|
JTZEMP_CURRENT_TIME_="%{$fg[blue]%}[%{$fg[red]%}%T%{$fg[blue]%}]%{$reset_color%}"
|
||||||
|
|
||||||
# Grab the current version of ruby in use (via RVM): [ruby-1.8.7]
|
# Grab the current version of ruby in use (via RVM): [ruby-1.8.7@rails2]
|
||||||
JTZEMP_CURRENT_RUBY_="%{$fg[blue]%}[%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt s i v)%{$fg[blue]%}]%{$reset_color%}"
|
JTZEMP_CURRENT_RUBY_="%{$fg[blue]%}[%{$fg[red]%}\$(rvm_with_gemset)%{$fg[blue]%}]%{$reset_color%}"
|
||||||
|
|
||||||
# Grab the current machine name: muscato
|
# Grab the current machine name: muscato
|
||||||
JTZEMP_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
|
JTZEMP_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
|
||||||
|
|
@ -13,7 +13,7 @@ JTZEMP_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
|
||||||
# Append the current git branch, if in a git repository: ~aw@master
|
# Append the current git branch, if in a git repository: ~aw@master
|
||||||
JTZEMP_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}"
|
JTZEMP_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}"
|
||||||
|
|
||||||
# Grab the current username: dallas
|
# Grab the current username
|
||||||
JTZEMP_CURRENT_USER_="%{$fg[green]%}%n@%{$reset_color%}"
|
JTZEMP_CURRENT_USER_="%{$fg[green]%}%n@%{$reset_color%}"
|
||||||
|
|
||||||
# Use a % for normal users and a # for privelaged (root) users.
|
# Use a % for normal users and a # for privelaged (root) users.
|
||||||
|
|
@ -30,7 +30,6 @@ ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
|
|
||||||
# Add 3 red ✗s if this branch is diiirrrty! Dirty branch!
|
# Add 3 red ✗s if this branch is diiirrrty! Dirty branch!
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✗✗✗"
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✗✗✗"
|
||||||
#ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} !"
|
|
||||||
|
|
||||||
|
|
||||||
# Put it all together!
|
# Put it all together!
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue