summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-11-03 16:42:49 +0100
committerGravatar Tom Willemse2013-11-03 16:42:49 +0100
commit1a1d110602b30196eb969b0fd5030297d33341cb (patch)
treec6c0600f7ebd812a4d47f13500b975619ead98d9 /.zshrc
parent2a133f4a39b120cf89755a6222760e1d6c4a45ce (diff)
downloadzsh-1a1d110602b30196eb969b0fd5030297d33341cb.tar.gz
zsh-1a1d110602b30196eb969b0fd5030297d33341cb.zip
Add emacs-like backward-kill word function
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index e7f700b..1d6f045 100644
--- a/.zshrc
+++ b/.zshrc
@@ -30,6 +30,7 @@ alias grep="grep --color=always"
alias less=$LESSCMD
alias ls="ls -F --color=always"
alias mysql="mysql --pager"
+alias sbcl="rlwrap sbcl"
# Suffix aliases
alias -s pdf="zathura"
@@ -73,6 +74,8 @@ export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
+zle -N emacs-backward-kill-word
+
# Set terminal keys
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
@@ -97,6 +100,7 @@ bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "^W" backward-delete-char
+bindkey "^\b" emacs-backward-kill-word
source /usr/share/zsh/scripts/antigen/antigen.zsh
antigen bundle zsh-users/zsh-syntax-highlighting