aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-09-10 19:12:38 +0800
committerGuangxiong Lin <[email protected]>2022-09-10 19:12:38 +0800
commit255f08ddddc448bf8a9f3454d696b778999f7c54 (patch)
tree8b1c9ac78d58c6a1cd7f0ee5b05f9fadf4527cd8
parent946e780e74436f7a31fae5c5348d892b3e65abd9 (diff)
downloaddotfiles-255f08ddddc448bf8a9f3454d696b778999f7c54.tar.gz
dotfiles-255f08ddddc448bf8a9f3454d696b778999f7c54.tar.bz2
dotfiles-255f08ddddc448bf8a9f3454d696b778999f7c54.zip
Integrate with git jump
-rw-r--r--.gitconfig9
-rwxr-xr-xbin/git-jump5
2 files changed, 14 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index 3550199..0511840 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -47,3 +47,12 @@
rbc = rebase --continue
rba = rebase --abort
rbs = rebase --skip
+
+ # contrib
+
+ # git-jump
+ jp = jump
+ jd = jump diff
+ jm = jump merge
+ jg = jump grep
+ jw = jump ws
diff --git a/bin/git-jump b/bin/git-jump
new file mode 100755
index 0000000..d7f4cf4
--- /dev/null
+++ b/bin/git-jump
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+if [[ $(uname) == Darwin ]] && command -v brew > /dev/null ;then
+ $(brew --prefix git)/share/git-core/contrib/git-jump/git-jump $@
+fi