diff --git a/lib/aliases.zsh b/lib/aliases.zsh index 0555be264..b4d135451 100644 --- a/lib/aliases.zsh +++ b/lib/aliases.zsh @@ -1,24 +1,4 @@ -# Push and pop directories on directory stack -alias pu='pushd' -alias po='popd' - -# Basic directory operations -alias ...='cd ../..' -alias -- -='cd -' - -# Super user -alias _='sudo' - -#alias g='grep -in' +alias g='grep -in' # Show history alias history='fc -l 1' - -# List direcory contents -alias lsa='ls -lah' -alias l='ls -la' -alias ll='ls -l' -alias sl=ls # often screw this up - -alias afind='ack-grep -il' - diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh index 9c2dda35a..5a994f7c7 100644 --- a/lib/key-bindings.zsh +++ b/lib/key-bindings.zsh @@ -19,6 +19,8 @@ bindkey "^[[4~" end-of-line bindkey ' ' magic-space # also do history expansion on space bindkey '^[[Z' reverse-menu-complete +bindkey '^[[U' backward-kill-line + # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~ bindkey '^?' backward-delete-char @@ -30,17 +32,17 @@ bindkey "\e[3~" delete-char #bindkey -e ## emacs key bindings # -#bindkey '^[[A' up-line-or-search -#bindkey '^[[B' down-line-or-search -#bindkey '^[^[[C' emacs-forward-word -#bindkey '^[^[[D' emacs-backward-word +bindkey '^[[A' up-line-or-search +bindkey '^[[B' down-line-or-search +bindkey '^[^[[C' emacs-forward-word +bindkey '^[^[[D' emacs-backward-word # -#bindkey -s '^X^Z' '%-^M' -#bindkey '^[e' expand-cmd-path -#bindkey '^[^I' reverse-menu-complete -#bindkey '^X^N' accept-and-infer-next-history -#bindkey '^W' kill-region -#bindkey '^I' complete-word -## Fix weird sequence that rxvt produces -#bindkey -s '^[[Z' '\t' +bindkey -s '^X^Z' '%-^M' +bindkey '^[e' expand-cmd-path +bindkey '^[^I' reverse-menu-complete +bindkey '^X^N' accept-and-infer-next-history +bindkey '^W' kill-region +bindkey '^I' complete-word +# Fix weird sequence that rxvt produces +bindkey -s '^[[Z' '\t' # diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 4de1fa4e9..e3bc40875 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -20,7 +20,7 @@ ZSH_THEME="robbyrussell" # DISABLE_AUTO_TITLE="true" # Uncomment following line if you want disable red dots displayed while waiting for completion -# DISABLE_COMPLETION_WAITING_DOTS="true" +DISABLE_COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Example format: plugins=(rails git textmate ruby lighthouse)