Update vimrc

This commit is contained in:
Marco Thomas
2020-11-13 19:26:53 +01:00
parent 9b66bdd5f5
commit 549ae175d6
5 changed files with 50 additions and 38 deletions

View File

@@ -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"