Rewrote zsh rcfiles
This commit is contained in:
parent
4d5d851bff
commit
0b69a7cfe3
12
zsh/config
12
zsh/config
|
@ -4,7 +4,7 @@
|
||||||
# unsetopt correct_all
|
# unsetopt correct_all
|
||||||
|
|
||||||
# Don't wait for keys (snappier vi-mode)
|
# Don't wait for keys (snappier vi-mode)
|
||||||
export KEYTIMEOUT=1
|
# export KEYTIMEOUT=1
|
||||||
|
|
||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
@ -13,3 +13,13 @@ bindkey '^f' edit-command-line
|
||||||
bindkey -M viins '^w' backward-kill-word
|
bindkey -M viins '^w' backward-kill-word
|
||||||
bindkey -M viins '^a' beginning-of-line
|
bindkey -M viins '^a' beginning-of-line
|
||||||
bindkey -M viins '^e' end-of-line
|
bindkey -M viins '^e' end-of-line
|
||||||
|
|
||||||
|
bindkey -M viins ' ' magic-space
|
||||||
|
bindkey -M viins 'jj' vi-cmd-mode
|
||||||
|
|
||||||
|
|
||||||
|
bindkey -M vicmd "q" push-line
|
||||||
|
|
||||||
|
# Incremental search is elite!
|
||||||
|
bindkey -M vicmd "/" history-incremental-search-backward
|
||||||
|
bindkey -M vicmd "?" history-incremental-search-forward
|
||||||
|
|
13
zsh/preztorc
13
zsh/preztorc
|
@ -31,6 +31,7 @@ zstyle ':prezto:load' pmodule \
|
||||||
'completion' \
|
'completion' \
|
||||||
'prompt' \
|
'prompt' \
|
||||||
'git' \
|
'git' \
|
||||||
|
'syntax-highlighting' \
|
||||||
'osx'
|
'osx'
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,12 +78,12 @@ zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
|
||||||
|
|
||||||
# Set syntax highlighters.
|
# Set syntax highlighters.
|
||||||
# By default, only the main highlighter is enabled.
|
# By default, only the main highlighter is enabled.
|
||||||
# zstyle ':prezto:module:syntax-highlighting' highlighters \
|
zstyle ':prezto:module:syntax-highlighting' highlighters \
|
||||||
# 'main' \
|
'main' \
|
||||||
# 'brackets' \
|
'brackets' \
|
||||||
# 'pattern' \
|
'pattern' \
|
||||||
# 'cursor' \
|
'cursor' \
|
||||||
# 'root'
|
'root'
|
||||||
#
|
#
|
||||||
# Set syntax highlighting styles.
|
# Set syntax highlighting styles.
|
||||||
# zstyle ':prezto:module:syntax-highlighting' styles \
|
# zstyle ':prezto:module:syntax-highlighting' styles \
|
||||||
|
|
Loading…
Reference in a new issue