diff options
author | William Carroll <wpcarro@gmail.com> | 2016-06-28T02·59-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2016-06-28T02·59-0400 |
commit | bd2d3361c14c96e2fb507bd54b4db466ff6aba09 (patch) | |
tree | 05848cb411648986bb1f43ac0b3dd47f465d48aa /.zsh_profile | |
parent | a8b8bf371670d4dd51c802a4bde2afc5475ab32c (diff) |
Adds new bindkey for vi insert mode
Diffstat (limited to '.zsh_profile')
-rw-r--r-- | .zsh_profile | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.zsh_profile b/.zsh_profile index aa8fe6e29b47..24760627cb61 100644 --- a/.zsh_profile +++ b/.zsh_profile @@ -1,6 +1,6 @@ export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:$PATH -echo "Welcome back, William" +echo "Welcome back, $USER" # use vi bindings for terminal input set -o vi @@ -15,6 +15,15 @@ alias grep="egrep" alias c="clear" alias vi="vim" + +alias find="find -E" + +# if pygmentize isn't installed run... +# sudo pip install pygments +# colorizes syntax of files +alias ccat="pygmentize -g" + +alias dir='find . -maxdepth 1 -type d -regex "\.\/[^.].+"' # END: aliases # BEGIN: functions @@ -24,9 +33,13 @@ functon npms() { } # END: functions -# bindkey reverse-i search from emacs bindings +# BEGIN: bindkeys bindkey "^R" history-incremental-search-backward +bindkey -M viins 'jj' vi-cmd-mode +# END: bindkeys + + # export docker env variables # re-enable this line when using docker otherwise you will receive # a TLS error since docker-machine won't be running |