From 39548f2301ef4faf6cf19f4a6f379f183c6e2fc5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 23 Mar 2016 09:28:03 -0700 Subject: [zsh] clean up zsh config. Keep as few files as possible, and document the order this files are loaded in OS X. --- zshrc | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 52f9a1f..95f0f72 100644 --- a/zshrc +++ b/zshrc @@ -4,15 +4,30 @@ autoload -U colors colors +# enable auto completion +autoload -U compinit +compinit -C +zstyle ':completion:*' completer _expand _complete _match _prefix + # I want word boundary to be similar to bash autoload -U select-word-style select-word-style bash -local ret_status="%{$reset_color%}%(?:%{$fg_bold[green]%}➜:%{$fg_bold[red]%}➜)%{$reset_color%}" -PROMPT="${ret_status} %1~ %# " +# keep the prompt simple and short +PROMPT="%1~ %# " + +# emacs style +bindkey -e # load custom aliases source ~/.aliases -# emacs style -bindkey -e +# aliases for some directories +hash -d s="$HOME/src/source" +hash -d eb="$HOME/src/source/eventbus" +hash -d ops="$HOME/src/twitter-ops/" +hash -d science="$HOME/src/source/science/" +hash -d gcode="$HOME/gocode/src/" + +# this is for local stuff +[ -f ~/.zlogin_local ] && source ~/.zlogin_local -- cgit 1.4.1