summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-11-03 22:53:04 +0100
committerGravatar Tom Willemse2013-11-03 22:53:04 +0100
commite6d82a55528e0f36467df94e08a812d298738dab (patch)
tree4a7f2f2f6cabcd48e68195bb957f6916c753d722 /zsh
parent40e4a1706c7a35a78cf2fbe95eb6a7b81ea759d6 (diff)
downloaddotfiles-e6d82a55528e0f36467df94e08a812d298738dab.tar.gz
dotfiles-e6d82a55528e0f36467df94e08a812d298738dab.zip
Update zsh config
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zsh/functions/emacs-backward-kill-word3
-rw-r--r--zsh/.zshrc9
2 files changed, 11 insertions, 1 deletions
diff --git a/zsh/.zsh/functions/emacs-backward-kill-word b/zsh/.zsh/functions/emacs-backward-kill-word
new file mode 100644
index 0000000..8453454
--- /dev/null
+++ b/zsh/.zsh/functions/emacs-backward-kill-word
@@ -0,0 +1,3 @@
+# -*- mode: sh; -*-
+local WORDCHARS="${WORDCHARS:s#/#}"
+zle backward-delete-word
diff --git a/zsh/.zshrc b/zsh/.zshrc
index d4fb2ad..1d6f045 100644
--- a/zsh/.zshrc
+++ b/zsh/.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,10 +100,14 @@ 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
# Show syntax highlighting when we're not running in emacs
if [ -z $EMACS ]; then
- source $HOME/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
+ # source $HOME/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)