adding autosuggestions

master
TiynGER 5 years ago
parent b9021d455d
commit 7a05bb3053

@ -3,6 +3,10 @@ stty -ixon
setopt autocd autopushd \ setopt autocd autopushd \
# Enable autosuggestions
source ~/gitrepos/pc/zsh-autosuggestions/zsh-autosuggestions.zsh
bindkey '^ ' autosuggest-accept
# Enable colors and change prompt # Enable colors and change prompt
autoload -U colors && colors autoload -U colors && colors
autoload -Uz vcs_info autoload -Uz vcs_info
@ -11,7 +15,7 @@ precmd_functions+=( precmd_vcs_info )
zstyle ':vcs_info:*' enable git zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git*:*' get-revision true zstyle ':vcs_info:git*:*' get-revision true
zstyle ':vcs_info:git*:*' check-for-changes true zstyle ':vcs_info:git*:*' check-for-changes true
zstyle ':vcs_info:git*' formats "(%s) %12.12i %c%u %b%m" zstyle ':vcs_info:git*' formats "(%s) %c%u %b%m"
zstyle ':vcs_info:git*' actionformats "(%s|%a) %12.12i %c%u %b%m" zstyle ':vcs_info:git*' actionformats "(%s|%a) %12.12i %c%u %b%m"
setopt prompt_subst setopt prompt_subst
# Show remote ref name and number of commits ahead-of or behind # Show remote ref name and number of commits ahead-of or behind
@ -42,8 +46,8 @@ function +vi-git-stash() {
fi fi
} }
zstyle ':vcs_info:git*+set-message:*' hooks git-st git-stash zstyle ':vcs_info:git*+set-message:*' hooks git-st git-stash
PROMPT="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " PROMPT='%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b '
RPROMPT='%B%{$fg[magenta]%}$vcs_info_msg_0_%{$reset_color%}' RPROMPT='%B%{$fg[magenta]%}$vcs_info_msg_0_%{$reset_color%}%b'
# History in cache directory # History in cache directory
HISTSIZE=10000 HISTSIZE=10000

Loading…
Cancel
Save