Update zsh config
This commit is contained in:
parent
a2d62b670d
commit
4f39666b16
|
@ -3,6 +3,8 @@
|
||||||
# By Henrik Lissner <henrik@lissner.net>
|
# By Henrik Lissner <henrik@lissner.net>
|
||||||
|
|
||||||
if is-interactive; then
|
if is-interactive; then
|
||||||
|
AUTOPAIR_INHIBIT_INIT=1
|
||||||
|
|
||||||
repo "tarjoilija/zgen" "$HOME/.zgen"
|
repo "tarjoilija/zgen" "$HOME/.zgen"
|
||||||
source "$HOME/.zgen/zgen.zsh"
|
source "$HOME/.zgen/zgen.zsh"
|
||||||
if ! zgen saved; then
|
if ! zgen saved; then
|
||||||
|
@ -10,7 +12,7 @@ if is-interactive; then
|
||||||
|
|
||||||
cache-clear
|
cache-clear
|
||||||
|
|
||||||
zgen load hlissner/zsh-autopair "autopair.zsh"
|
zgen load hlissner/zsh-autopair
|
||||||
zgen load zsh-users/zsh-history-substring-search
|
zgen load zsh-users/zsh-history-substring-search
|
||||||
zgen load zdharma/history-search-multi-word
|
zgen load zdharma/history-search-multi-word
|
||||||
zgen load zsh-users/zsh-completions src
|
zgen load zsh-users/zsh-completions src
|
||||||
|
@ -27,6 +29,7 @@ if is-interactive; then
|
||||||
load shell/+zsh/prompt.zsh
|
load shell/+zsh/prompt.zsh
|
||||||
|
|
||||||
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
|
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
|
||||||
|
autopair-init
|
||||||
fi
|
fi
|
||||||
loadall aliases.zsh
|
loadall aliases.zsh
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
## Plugin config
|
|
||||||
AUTOPAIR_SPC_WIDGET=magic-space
|
|
||||||
|
|
||||||
## General
|
## General
|
||||||
# Treat these characters as part of a word.
|
# Treat these characters as part of a word.
|
||||||
WORDCHARS='_-*?[]~&.;!#$%^(){}<>'
|
WORDCHARS='_-*?[]~&.;!#$%^(){}<>'
|
||||||
|
|
|
@ -9,6 +9,7 @@ autoload -U is-at-least
|
||||||
## vi-mode ###############
|
## vi-mode ###############
|
||||||
bindkey -v
|
bindkey -v
|
||||||
bindkey -M viins 'jk' vi-cmd-mode
|
bindkey -M viins 'jk' vi-cmd-mode
|
||||||
|
bindkey -M viins ' ' magic-space
|
||||||
# bindkey -M viins '^I' expand-or-complete-prefix
|
# bindkey -M viins '^I' expand-or-complete-prefix
|
||||||
|
|
||||||
# surround
|
# surround
|
||||||
|
|
Loading…
Reference in a new issue