diff --git a/dotfiles/lib/zsh.sh b/dotfiles/lib/zsh.sh index 48b0bcaa..6615f525 100644 --- a/dotfiles/lib/zsh.sh +++ b/dotfiles/lib/zsh.sh @@ -2,12 +2,4 @@ for filename in ~/.lib/zsh/*; do source $filename done -CASE_SENSITIVE="true" -fpath=(~/.lib/completions $fpath) -autoload -U compinit -compinit -# Allow command line editing. -autoload -U edit-command-line -zle -N edit-command-line -bindkey '\C-x\C-e' edit-command-line -setopt PROMPT_SUBST +alias srczsh="source ~/.zshrc" diff --git a/dotfiles/lib/zsh/completion.sh b/dotfiles/lib/zsh/completion.sh index ba839a06..560f4cf5 100644 --- a/dotfiles/lib/zsh/completion.sh +++ b/dotfiles/lib/zsh/completion.sh @@ -1,5 +1,10 @@ # fixme - the load process here seems a bit bizarre +CASE_SENSITIVE="true" +fpath=(~/.lib/completions $fpath) +autoload -U compinit +compinit + unsetopt menu_complete # do not autoselect the first completion entry unsetopt flowcontrol setopt auto_menu # show completion menu on succesive tab press diff --git a/dotfiles/lib/zsh/key_bindings.sh b/dotfiles/lib/zsh/key_bindings.sh index 98c486c4..488f4561 100644 --- a/dotfiles/lib/zsh/key_bindings.sh +++ b/dotfiles/lib/zsh/key_bindings.sh @@ -44,3 +44,9 @@ bindkey '^I' complete-word # Fix weird sequence that rxvt produces bindkey -s '^[[Z' '\t' + +# Allow command line editing. +autoload -U edit-command-line +zle -N edit-command-line +bindkey '\C-x\C-e' edit-command-line +setopt PROMPT_SUBST