Update zsh config

This commit is contained in:
Henrik Lissner 2017-10-06 12:15:48 +02:00
parent a2d62b670d
commit 4f39666b16
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 5 additions and 4 deletions

View file

@ -3,6 +3,8 @@
# By Henrik Lissner <henrik@lissner.net>
if is-interactive; then
AUTOPAIR_INHIBIT_INIT=1
repo "tarjoilija/zgen" "$HOME/.zgen"
source "$HOME/.zgen/zgen.zsh"
if ! zgen saved; then
@ -10,7 +12,7 @@ if is-interactive; then
cache-clear
zgen load hlissner/zsh-autopair "autopair.zsh"
zgen load hlissner/zsh-autopair
zgen load zsh-users/zsh-history-substring-search
zgen load zdharma/history-search-multi-word
zgen load zsh-users/zsh-completions src
@ -27,6 +29,7 @@ if is-interactive; then
load shell/+zsh/prompt.zsh
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
autopair-init
fi
loadall aliases.zsh

View file

@ -1,6 +1,3 @@
## Plugin config
AUTOPAIR_SPC_WIDGET=magic-space
## General
# Treat these characters as part of a word.
WORDCHARS='_-*?[]~&.;!#$%^(){}<>'

View file

@ -9,6 +9,7 @@ autoload -U is-at-least
## vi-mode ###############
bindkey -v
bindkey -M viins 'jk' vi-cmd-mode
bindkey -M viins ' ' magic-space
# bindkey -M viins '^I' expand-or-complete-prefix
# surround