... | ... |
@@ -11,12 +11,3 @@ parse_git_dirty () { |
11 | 11 |
echo "$ZSH_THEME_GIT_PROMPT_CLEAN" |
12 | 12 |
fi |
13 | 13 |
} |
14 |
- |
|
15 |
-# |
|
16 |
-# Will return the current branch name |
|
17 |
-# Usage example: git pull origin $(current_branch) |
|
18 |
-# |
|
19 |
-function current_branch() { |
|
20 |
- ref=$(git symbolic-ref HEAD 2> /dev/null) || return |
|
21 |
- echo ${ref#refs/heads/} |
|
22 |
-} |
... | ... |
@@ -17,5 +17,15 @@ alias gcp='git cherry-pick' |
17 | 17 |
# Git and svn mix |
18 | 18 |
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk' |
19 | 19 |
|
20 |
+# |
|
21 |
+# Will return the current branch name |
|
22 |
+# Usage example: git pull origin $(current_branch) |
|
23 |
+# |
|
24 |
+function current_branch() { |
|
25 |
+ ref=$(git symbolic-ref HEAD 2> /dev/null) || return |
|
26 |
+ echo ${ref#refs/heads/} |
|
27 |
+} |
|
28 |
+ |
|
29 |
+# these aliases take advangate of the previous function |
|
20 | 30 |
alias ggpull='git pull origin $(current_branch)' |
21 | 31 |
alias ggpush='git push origin $(current_branch)' |