mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Right-prompt theme for minimum clutter
This commit is contained in:
parent
762b55bb2b
commit
3eb42ee261
1 changed files with 21 additions and 0 deletions
21
themes/rprompt.zsh-theme
Normal file
21
themes/rprompt.zsh-theme
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Right-prompt theme for minimum clutter by Chris Leishman <chris@leishman.org>
|
||||
#
|
||||
# See screenshot at http://ompldr.org/vOXE5Yw
|
||||
|
||||
local host='%{$fg[magenta]%}%m%{$reset_color%}'
|
||||
local pwd='%{$fg[blue]%}%(4~|../|)%3~%{$reset_color%}'
|
||||
local rvm='%{$fg[green]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
|
||||
local jobs='%(1j|%{$fg[green]%}[%j]%{$reset_color%}|)'
|
||||
local git_branch='$(git_prompt_status)%{$reset_color%}$(git_prompt_info)%{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%%%{$fg[green]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✗%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||
|
||||
PROMPT="${jobs}%# "
|
||||
RPROMPT="${host}:${pwd}${git_branch}"
|
||||
|
||||
export LSCOLORS="exdxgxgxfxGxCxBxGxExDx"
|
||||
export LS_COLORS="di=34:ln=33:so=36:pi=36:ex=35:bd=1:cd=1:su=1:sg=1:tw=1:ow=1:"
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
Loading…
Add table
Add a link
Reference in a new issue