summary refs log tree commit diff
path: root/zshrc
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-03-23 09:28:03 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-03-23 09:28:03 -0700
commit39548f2301ef4faf6cf19f4a6f379f183c6e2fc5 (patch)
treef8d3b7a16fca4aa0cecf86f06181f8be84274f38 /zshrc
parent[zsh] replace bash with zsh. (diff)
downloademacs.d-39548f2301ef4faf6cf19f4a6f379f183c6e2fc5.tar.gz
[zsh] clean up zsh config.
Keep as few files as possible, and document the order this files are
loaded in OS X.
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc23
1 files changed, 19 insertions, 4 deletions
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