Rewrote zsh rcfiles

This commit is contained in:
Henrik Lissner 2014-08-21 03:28:28 -04:00
parent 4d5d851bff
commit 0b69a7cfe3
3 changed files with 19 additions and 9 deletions

View file

@ -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

View file

@ -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 \

1
zshrc
View file

@ -7,7 +7,6 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
fi fi
# Source component rcfiles # Source component rcfiles
source ~/.zsh/functions
source ~/.zsh/aliases source ~/.zsh/aliases
source ~/.zsh/config source ~/.zsh/config