From 4805bef74cd6e5f63d9dd332ee8cf6b3b55a0d18 Mon Sep 17 00:00:00 2001 From: Alex Wood Date: Sat, 27 Jun 2015 15:49:13 -0700 Subject: [PATCH 1/2] + misc helpful key mappings --- zsh/aliases.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 8f72568..22e66cc 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -80,6 +80,7 @@ alias gci='git ci' alias gco='git co' alias gcp='git cp' alias ga='git add -A' +alias gap='git add -p' alias guns='git unstage' alias gunc='git uncommit' alias gm='git merge' @@ -136,7 +137,8 @@ alias gz='tar -zcvf' # Ruby alias c='rails c' # Rails 3 -alias co='script/console --irb=pry' # Rails 2 +alias co='script/console' # Rails 2 +alias cod='script/console --debugger' alias ts='thin start' alias ms='mongrel_rails start' alias tfdl='tail -f log/development.log' From 86d715585406bfff8f20f7fa8ba5d2e1dc3f10ea Mon Sep 17 00:00:00 2001 From: Alex Wood Date: Sat, 27 Jun 2015 15:49:28 -0700 Subject: [PATCH 2/2] Make numpad enter work --- zsh/key-bindings.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/key-bindings.zsh b/zsh/key-bindings.zsh index c1c7d8e..4eb39a2 100644 --- a/zsh/key-bindings.zsh +++ b/zsh/key-bindings.zsh @@ -8,3 +8,9 @@ bindkey '^r' history-incremental-search-backward # [Ctrl-r] - Search backward # emacs style bindkey '^a' beginning-of-line bindkey '^e' end-of-line + +# Make numpad enter work +bindkey -s "^[Op" "0" +bindkey -s "^[Ol" "." +bindkey -s "^[OM" "^M" +