mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
feat(git-commit): Use $0
This commit is contained in:
parent
440b66da14
commit
d2f071f8dd
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
# Add git-commit commands directory to path
|
# Add git-commit commands directory to path
|
||||||
path=("$ZSH/plugins/git-commit/git-commands" $path)
|
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
||||||
|
0="${${(M)0:#/*}:-$PWD/$0}"
|
||||||
|
path=("${0:a:h}/git-commands" $path)
|
||||||
|
|
||||||
# Append completions for custom git commands
|
# Append completions for custom git commands
|
||||||
() {
|
() {
|
||||||
|
@ -29,7 +31,7 @@ path=("$ZSH/plugins/git-commit/git-commands" $path)
|
||||||
# Clean up aliases from the prior implementation of git-commit. Can be safely removed
|
# Clean up aliases from the prior implementation of git-commit. Can be safely removed
|
||||||
# once everyone's .gitconfig has been restored.
|
# once everyone's .gitconfig has been restored.
|
||||||
() {
|
() {
|
||||||
git config --global --get oh-my-zsh.git-commit-alias &> /dev/null || return
|
git config --global --get oh-my-zsh.git-commit-alias &> /dev/null || return 0
|
||||||
local -a old_git_aliases=(
|
local -a old_git_aliases=(
|
||||||
'build' 'chore' 'ci'
|
'build' 'chore' 'ci'
|
||||||
'docs' 'feat' 'fix'
|
'docs' 'feat' 'fix'
|
||||||
|
|
Loading…
Reference in a new issue