summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <a.kiryukhin@vk.team>2024-02-06 14:52:32 +0300
committerAlexander <a.kiryukhin@vk.team>2024-02-06 14:52:32 +0300
commitd38c66b5e16b5f0dbb13d2a57449606d328fae77 (patch)
tree42e231d43e62791380d769e6e6fb5b468266fa34
parent76ebe373db118a11d97bb89ccfecc00e18c357ea (diff)
Обновление zsh
-rw-r--r--zsh/zshrc19
1 files changed, 13 insertions, 6 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index baa164f..014412f 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -9,6 +9,15 @@ fi
export PATH=$HOME/.bin:/usr/local/bin:$HOME/go/bin:$PATH
export EDITOR="nvim"
+source ~/.config/zsh/antigen.zsh
+
+antigen bundle zsh-users/zsh-syntax-highlighting
+antigen bundle zsh-users/zsh-history-substring-search
+antigen bundle zsh-users/zsh-autosuggestions
+antigen bundle zsh-users/zsh-completions
+
+antigen apply
+
# Aliases
[[ ! -f `which exa` ]] || alias ls="exa"
alias ll="ls -la"
@@ -39,8 +48,8 @@ zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
HISTFILE=~/.zsh_history
-HISTSIZE=10000
-SAVEHIST=10000
+HISTSIZE=100000
+SAVEHIST=100000
#export EDITOR=/usr/bin/nano
#export VISUAL=/usr/bin/nano
WORDCHARS=${WORDCHARS//\/[&.;]} # Don't consider certain characters part of the word
@@ -98,11 +107,9 @@ bindkey '^[[1;5C' forward-word #
bindkey '^H' backward-kill-word # delete previous word with ctrl+backspace
bindkey '^[[Z' undo # Shift+tab undo last action
+# ctrl + space accept suggestion
+bindkey '^ ' autosuggest-accept
source ~/.config/zsh/p10k.zsh
source ~/.config/zsh/p10k/powerlevel10k.zsh-theme
-source ~/.config/zsh/antigen.zsh
-antigen bundle zsh-users/zsh-syntax-highlighting
-antigen bundle zsh-users/zsh-history-substring-search
-antigen apply