]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
Use RPN with zcalc
[dotfiles.git] / zsh / .zshrc
index 5da7258c5b308aa7ebde765e5e9127f1458db16c..68b50e8a3f8f098f7b289c75042b47e173721e0f 100644 (file)
@@ -116,6 +116,7 @@ alias Ga="git add"
 alias Gb="git branch"
 alias Gc="git checkout"
 alias Gd="git diff"
+alias Gdc="git diff --cached"
 alias Gs="git show --show-signature"
 alias Gm="git diff --name-only --diff-filter=M"
 alias Gam="git commit --amend"
@@ -130,7 +131,7 @@ bindkey -s "\eOR" " git status --short\n" # F3
 
 # grep {{{
 GREP=/usr/local/bin/grep
-GREP_ARGS="--color=always --with-filename --line-number --recursive"
+GREP_ARGS="--color=always --with-filename --line-number --dereference-recursive"
 LESS_COLORED="less --RAW-CONTROL-CHARS"
 g() {
     $GREP ${=GREP_ARGS} $@ | ${=LESS_COLORED}
@@ -165,7 +166,7 @@ bindkey -s "\eOP" " inc\n" # F1
 
 # Calculator {{{
 autoload -U zcalc
-alias zc="zcalc"
+alias zc="zcalc -r4"
 # }}}
 
 # Named directories {{{