Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Conditional git branch aliases definition

  • Loading branch information...
commit d9351f82c4de94bcc5da28d5a97add9b4803d404 1 parent adedf86
@grota grota authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/git/branch_shortcuts.sh
View
12 lib/git/branch_shortcuts.sh
@@ -39,11 +39,11 @@ EOF
done
}
-alias "$git_branch_alias"="exec_scmb_expand_args _scmb_git_branch_shortcuts"
-alias "$git_branch_all_alias"="exec_scmb_expand_args _scmb_git_branch_shortcuts -a"
-alias "$git_branch_move_alias"="exec_scmb_expand_args _scmb_git_branch_shortcuts -m"
-alias "$git_branch_delete_alias"="exec_scmb_expand_args _scmb_git_branch_shortcuts -d"
-alias "$git_branch_delete_force_alias"="exec_scmb_expand_args _scmb_git_branch_shortcuts -D"
+__git_alias "$git_branch_alias" "_scmb_git_branch_shortcuts"
+__git_alias "$git_branch_all_alias" "_scmb_git_branch_shortcuts" "-a"
+__git_alias "$git_branch_move_alias" "_scmb_git_branch_shortcuts" "-m"
+__git_alias "$git_branch_delete_alias" "_scmb_git_branch_shortcuts" "-d"
+__git_alias "$git_branch_delete_force_alias" "_scmb_git_branch_shortcuts" "-D"
# Define completions for git branch shortcuts
if [ "$shell" = "bash" ]; then
@@ -51,4 +51,4 @@ if [ "$shell" = "bash" ]; then
__define_git_completion $alias_str branch
complete -o default -o nospace -F _git_"$alias_str"_shortcut $alias_str
done
-fi
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.