We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5e59d commit 97a83ffCopy full SHA for 97a83ff
aliases/available/git-zsh.aliases.bash
@@ -1,8 +1,11 @@
1
# shellcheck shell=bash
2
cite 'about-alias'
3
-about-alias 'git aliases from oh-my-zsh'
+about-alias 'git aliases from oh-my-zsh (incompatible with regular git aliases option)'
4
5
-# We are not vendoring this, as we need to adapt it to bash :(
+if [[ -n $_bash_it_git_aliases_enabled ]]; then
6
+ _log_error "git-zsh aliases are incompatible with regular git aliases"
7
+ return
8
+fi
9
10
# MIT License
11
aliases/available/git.aliases.bash
@@ -2,6 +2,9 @@
about-alias 'common git abbreviations'
+# We can use this variable to make sure that we don't accidentally clash with git-zsh aliases
+_bash_it_git_aliases_enabled=true
+
alias g='git'
alias get='git'
0 commit comments