Update zsh config

This commit is contained in:
Tom Willemse 2013-11-03 22:53:04 +01:00
parent 40e4a1706c
commit e6d82a5552
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,3 @@
# -*- mode: sh; -*-
local WORDCHARS="${WORDCHARS:s#/#}"
zle backward-delete-word

View file

@ -30,6 +30,7 @@ alias grep="grep --color=always"
alias less=$LESSCMD alias less=$LESSCMD
alias ls="ls -F --color=always" alias ls="ls -F --color=always"
alias mysql="mysql --pager" alias mysql="mysql --pager"
alias sbcl="rlwrap sbcl"
# Suffix aliases # Suffix aliases
alias -s pdf="zathura" alias -s pdf="zathura"
@ -73,6 +74,8 @@ export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share" export XDG_DATA_HOME="$HOME/.local/share"
zle -N emacs-backward-kill-word
# Set terminal keys # Set terminal keys
bindkey "\e[1~" beginning-of-line bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-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 "\e[F" end-of-line
bindkey "^W" backward-delete-char 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 # Show syntax highlighting when we're not running in emacs
if [ -z $EMACS ]; then 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) ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)