mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Fixed conflict between gcc d compiler and gdc alias
This commit is contained in:
parent
3c722876ef
commit
bcbe735dc6
1 changed files with 5 additions and 0 deletions
|
|
@ -5,8 +5,13 @@ alias gst='git status'
|
|||
compdef _git gst=git-status
|
||||
alias gd='git diff'
|
||||
compdef _git gd=git-diff
|
||||
|
||||
#Dont add alias if gdc (GCC D Compiler) is present
|
||||
command -v gdc >/dev/null 2>&1 || {
|
||||
alias gdc='git diff --cached'
|
||||
compdef _git gdc=git-diff
|
||||
}
|
||||
|
||||
alias gdt='git diff-tree --no-commit-id --name-only -r'
|
||||
compdef _git gdt=git diff-tree --no-commit-id --name-only -r
|
||||
alias gl='git pull'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue