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
# Don't wait for keys (snappier vi-mode)
export KEYTIMEOUT=1
# export KEYTIMEOUT=1
zle -N edit-command-line
bindkey -v
@ -13,3 +13,13 @@ bindkey '^f' edit-command-line
bindkey -M viins '^w' backward-kill-word
bindkey -M viins '^a' beginning-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' \
'prompt' \
'git' \
'syntax-highlighting' \
'osx'
@ -77,12 +78,12 @@ zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
# Set syntax highlighters.
# By default, only the main highlighter is enabled.
# zstyle ':prezto:module:syntax-highlighting' highlighters \
# 'main' \
# 'brackets' \
# 'pattern' \
# 'cursor' \
# 'root'
zstyle ':prezto:module:syntax-highlighting' highlighters \
'main' \
'brackets' \
'pattern' \
'cursor' \
'root'
#
# Set 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
# Source component rcfiles
source ~/.zsh/functions
source ~/.zsh/aliases
source ~/.zsh/config