Update vimrc
This commit is contained in:
19
files/.zshrc
19
files/.zshrc
@@ -12,13 +12,22 @@ autoload -U colors && colors
|
||||
precmd_vcs_info() { vcs_info }
|
||||
precmd_functions+=( precmd_vcs_info )
|
||||
setopt prompt_subst
|
||||
ICON="%{$fg[blue]%}"
|
||||
ICON_DYN="%(?.%{$fg[green]%}.%{$fg[red]%})"
|
||||
|
||||
LN=$'\n'
|
||||
|
||||
ICON="%(?.%{$fg[green]%}.%{$fg[red]%})λ"
|
||||
DIR="%{$fg[blue]%}%~"
|
||||
GIT_ICON=""
|
||||
GIT="%{$fg[cyan]%}\$vcs_info_msg_0_"
|
||||
NAME="%{$fg[yellow]%}%m"
|
||||
export PROMPT="$NAME $DIR$GIT $ICON_DYN %{$reset_color%}"
|
||||
zstyle ':vcs_info:git:*' formats ' [%b ]'
|
||||
|
||||
if [[ -n "$SSH_CONNECTION" ]]; then
|
||||
NAME="%{$fg[yellow]%}%m"
|
||||
else
|
||||
NAME="%{$fg[yellow]%}»"
|
||||
fi
|
||||
|
||||
export PROMPT="${NAME} ${DIR}${GIT} ${LN}${ICON} %{$reset_color%}"
|
||||
zstyle ':vcs_info:git:*' formats ' %b'
|
||||
|
||||
# ============================== Exports
|
||||
export EDITOR="nvim"
|
||||
|
||||
Reference in New Issue
Block a user