diff options
-rwxr-xr-x | install.sh | 1 | ||||
-rw-r--r-- | shell/_zshrc | 2 | ||||
-rw-r--r-- | shell/themes/custom.zsh-theme | 31 |
3 files changed, 33 insertions, 1 deletions
@@ -8,6 +8,7 @@ git submodule update --init --recursive # [zsh] ln -sf "$dotfiles/shell/_zshrc" "$HOME/.zshrc" ln -sfT "$dotfiles/shell/_oh-my-zsh" "$HOME/.oh-my-zsh" +ln -sfT "$dotfiles/shell/themes" "$HOME/.oh-my-zsh/custom/themes" # [vim] ln -sf "$dotfiles/shell/_vimrc" "$HOME/.vimrc" diff --git a/shell/_zshrc b/shell/_zshrc index b15be93..4b7314c 100644 --- a/shell/_zshrc +++ b/shell/_zshrc @@ -5,7 +5,7 @@ export ZSH=$HOME/.oh-my-zsh # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. -ZSH_THEME="robbyrussell" +ZSH_THEME="custom" # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" diff --git a/shell/themes/custom.zsh-theme b/shell/themes/custom.zsh-theme new file mode 100644 index 0000000..41d2cb0 --- /dev/null +++ b/shell/themes/custom.zsh-theme @@ -0,0 +1,31 @@ +# custom.zsh-theme +# based on the af-magic theme + +if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi +local return_code="%(?..%{$fg[red]%}:%?%{$reset_color%})" + +# primary prompt +PROMPT='$FG[032]%(7~"[..]/")%7~\ +$(git_prompt_info) \ +$FG[105]%1(j.[%j] .)%(!.#.$)%{$reset_color%} ' +PROMPT2='%{$fg[red]%}\ %{$reset_color%}' +RPS1='${return_code}' + +# color vars +eval my_gray='$FG[237]' +eval my_orange='$FG[214]' + +# right prompt +#if type "virtualenv_prompt_info" > /dev/null +#then + #RPROMPT='$(virtualenv_prompt_info)$my_gray%n@%m%{$reset_color%}%' +#else + #RPROMPT='$my_gray%n@%m%{$reset_color%}%' +#fi + +# git settings +ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075] (" +ZSH_THEME_GIT_PROMPT_CLEAN="" +ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}" + |