summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/config15
-rw-r--r--zsh/rc1
2 files changed, 9 insertions, 7 deletions
diff --git a/git/config b/git/config
index afd48eb..6878252 100644
--- a/git/config
+++ b/git/config
@@ -1,11 +1,12 @@
[alias]
- br = branch
- co = checkout
- di = diff
- dis = diff --staged
- fa = fetch --all --prune
- gi = grep -i
- st = status
+ br = branch
+ co = checkout
+ di = diff
+ dis = diff --staged
+ fa = fetch --all --prune
+ gi = grep -i
+ root = rev-parse --show-toplevel
+ st = status
[branch]
autoSetupRebase = always
diff --git a/zsh/rc b/zsh/rc
index 9e832ff..1c1d4b5 100644
--- a/zsh/rc
+++ b/zsh/rc
@@ -26,6 +26,7 @@ SAVEHIST=${HISTSIZE}
WORDCHARS=${WORDCHARS/\//}
alias bc='bc -lq'
+alias cdr='cd $(git root)'
alias cp='cp -i'
alias ddig='dig +noall +answer'
alias dfl='df -l'