|
|
@ -8,16 +8,13 @@ export TERM=xterm-256color |
|
|
|
|
|
|
|
|
|
|
|
parse_git_branch(){ |
|
|
|
parse_git_branch(){ |
|
|
|
ref=$(git symbolic-ref HEAD 2> /dev/null | cut -d'/' -f3) |
|
|
|
ref=$(git symbolic-ref HEAD 2> /dev/null | cut -d'/' -f3) |
|
|
|
|
|
|
|
if [ -n "$ref" ]; then echo "%{$fg[white]%}[%{$fg[cyan]%}$ref%{$fg[white]%}]"; fi |
|
|
|
if [ -n "$ref" ]; then echo "[$ref]"; fi |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
HISTFILE=~/.histfile |
|
|
|
HISTFILE=~/.histfile |
|
|
|
HISTSIZE=10000 |
|
|
|
HISTSIZE=10000 |
|
|
|
SAVEHIST=10000 |
|
|
|
SAVEHIST=10000 |
|
|
|
|
|
|
|
|
|
|
|
ZSH_THEME="juanghurtado" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autoload -U promptinit |
|
|
|
autoload -U promptinit |
|
|
|
autoload -U compinit && compinit |
|
|
|
autoload -U compinit && compinit |
|
|
|
zstyle ':completion:*' menu select |
|
|
|
zstyle ':completion:*' menu select |
|
|
@ -44,7 +41,7 @@ autoload -U colors && colors |
|
|
|
# Set up custom prompt |
|
|
|
# Set up custom prompt |
|
|
|
setopt PROMPT_SUBST |
|
|
|
setopt PROMPT_SUBST |
|
|
|
|
|
|
|
|
|
|
|
RPROMPT="%{$fg[yellow]%}${vcs_info_msg_0_}%{$reset_color%}" |
|
|
|
RPROMPT="$(parse_git_branch)%{$reset_color%}" |
|
|
|
|
|
|
|
|
|
|
|
PROMPT="%{$fg[white]%}┌[%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%{$reset_color%}]─[%{$fg[green]%}%d%{$reset_color%}] |
|
|
|
PROMPT="%{$fg[white]%}┌%{$reset_color%}[%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%{$reset_color%}]─[%{$fg[green]%}%d%{$reset_color%}] |
|
|
|
└─╼ " |
|
|
|
%{$fg[white]%}└─╼%{$reset_color%} " |
|
|
|