summary refs log tree commit diff
path: root/zshrc
diff options
context:
space:
mode:
Diffstat (limited to '')
-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