mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Theme inspired by Zack Holman's .dotfiles prompt
This commit is contained in:
parent
0790f36e43
commit
9ad1406cad
1 changed files with 9 additions and 8 deletions
|
|
@ -1,13 +1,14 @@
|
|||
local rvm_prompt='%{$fg[yellow]%}$(rvm-prompt)%{$reset_color%}'
|
||||
local current_path='%{$terminfo[bold]$fg[cyan]%} %~%{$reset_color%}'
|
||||
local git_info='%{$fg_bold[white]%}$(git_prompt_info)'
|
||||
local current_path='%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}'
|
||||
local rvm_prompt='%{$fg_bold[yellow]%}$(rvm-prompt)%{$reset_color%}'
|
||||
local git_info='$(git_prompt_info)'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="at %{$fg[yellow]%}"
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="on %{$fg_bold[yellow]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[magenta]%} ✗"
|
||||
#ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔"
|
||||
|
||||
#RPROMPT="%{$fg[white]%}%n@%{$fg[white]%}%m%{$reset_color%}"
|
||||
PROMPT="${rvm_prompt} in${current_path} ${git_info} % %{$reset_color%}
|
||||
%{$fg_bold[red]%}➜ %{$reset_color%}"
|
||||
RPROMPT="%{$fg_bold[grey]%}%{$reset_color%}"
|
||||
|
||||
PROMPT="
|
||||
${rvm_prompt} in ${current_path} ${git_info}
|
||||
› "
|
||||
Loading…
Add table
Add a link
Reference in a new issue