浏览代码

New aliases: k for gitk and ka for gitk --all

The latter is alternative for `gitka` bash alias
Alois Mahdal 10 年前
父节点
当前提交
d4b9493e15
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      dotfiles/git-universe/before.gitconfig

+ 4
- 0
dotfiles/git-universe/before.gitconfig 查看文件

@@ -18,6 +18,10 @@
18 18
   grr = log --graph --full-history --all --color\
19 19
         --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x1b[0m"\
20 20
         --simplify-by-decoration
21
+  k = !sh -c \
22
+      '(which gitk >/dev/null || (echo "gitk not installed" && false)) && gitk'
23
+  ka = !sh -c \
24
+       '(which gitk >/dev/null || (echo "gitk not installed" && false)) && gitk --all'
21 25
   rb = rebase
22 26
   rbi = rebase --interactive
23 27
   rmv = remote --verbose