]> git.r.bdr.sh - rbdr/dotfiles/blame - ben-prose.zsh-theme
Relative line numbers for vim
[rbdr/dotfiles] / ben-prose.zsh-theme
CommitLineData
9041bd93
BB
1if [ "x$OH_MY_ZSH_HG" = "x" ]; then
2 OH_MY_ZSH_HG="hg"
3fi
4
5function rvm_info {
6 echo '('`rvm-prompt`') '
7}
8
9041bd93
BB
9function box_name {
10 [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
11}
12
64bb1bce
BB
13function zle-line-init zle-keymap-select {
14 local return_status="%{$fg[red]%}%(?..✘)%{$reset_color%}"
15 RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}${return_status}%{$reset_color%}"
16 RPS2=$RPS1
17 zle reset-prompt
18}
19zle -N zle-line-init
20zle -N zle-keymap-select
21
9041bd93 22PROMPT='
75a6977d 23%{$fg[red]%}%n%{$reset_color%} at %{$fg[yellow]%}$(box_name)%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) %{$fg[black]%}$(rvm_info)%{$reset_color%}
9041bd93
BB
24%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )$ '
25
26ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[blue]%}"
27ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
28ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
29ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
30ZSH_THEME_GIT_PROMPT_CLEAN=""
31