Обновление zsh
This commit is contained in:
parent
76ebe373db
commit
d38c66b5e1
1 changed files with 13 additions and 6 deletions
19
zsh/zshrc
19
zsh/zshrc
|
@ -9,6 +9,15 @@ fi
|
||||||
export PATH=$HOME/.bin:/usr/local/bin:$HOME/go/bin:$PATH
|
export PATH=$HOME/.bin:/usr/local/bin:$HOME/go/bin:$PATH
|
||||||
export EDITOR="nvim"
|
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
|
# Aliases
|
||||||
[[ ! -f `which exa` ]] || alias ls="exa"
|
[[ ! -f `which exa` ]] || alias ls="exa"
|
||||||
alias ll="ls -la"
|
alias ll="ls -la"
|
||||||
|
@ -39,8 +48,8 @@ zstyle ':completion:*' accept-exact '*(N)'
|
||||||
zstyle ':completion:*' use-cache on
|
zstyle ':completion:*' use-cache on
|
||||||
zstyle ':completion:*' cache-path ~/.zsh/cache
|
zstyle ':completion:*' cache-path ~/.zsh/cache
|
||||||
HISTFILE=~/.zsh_history
|
HISTFILE=~/.zsh_history
|
||||||
HISTSIZE=10000
|
HISTSIZE=100000
|
||||||
SAVEHIST=10000
|
SAVEHIST=100000
|
||||||
#export EDITOR=/usr/bin/nano
|
#export EDITOR=/usr/bin/nano
|
||||||
#export VISUAL=/usr/bin/nano
|
#export VISUAL=/usr/bin/nano
|
||||||
WORDCHARS=${WORDCHARS//\/[&.;]} # Don't consider certain characters part of the word
|
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 '^H' backward-kill-word # delete previous word with ctrl+backspace
|
||||||
bindkey '^[[Z' undo # Shift+tab undo last action
|
bindkey '^[[Z' undo # Shift+tab undo last action
|
||||||
|
|
||||||
|
# ctrl + space accept suggestion
|
||||||
|
bindkey '^ ' autosuggest-accept
|
||||||
|
|
||||||
source ~/.config/zsh/p10k.zsh
|
source ~/.config/zsh/p10k.zsh
|
||||||
source ~/.config/zsh/p10k/powerlevel10k.zsh-theme
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue