mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
rude solution to conflict with ag command
there it is http://packages.ubuntu.com/search?keywords=silversearcher-ag
This commit is contained in:
parent
4608231b25
commit
f183510402
1 changed files with 7 additions and 2 deletions
|
|
@ -27,7 +27,10 @@ compdef _afu afu='sudo apt-file update'
|
|||
alias ppap='sudo ppa-purge'
|
||||
compdef _ppap ppap='sudo ppa-purge'
|
||||
|
||||
alias ag='sudo apt-get' # age - but without sudo
|
||||
AG_COMMAND=$(command -v ag)
|
||||
if [[ -z $AG_COMMAND ]]; then
|
||||
alias ag='sudo apt-get' # age - but without sudo
|
||||
fi
|
||||
alias aga='sudo apt-get autoclean' # aac
|
||||
alias agb='sudo apt-get build-dep' # abd
|
||||
alias agc='sudo apt-get clean' # adc
|
||||
|
|
@ -41,7 +44,9 @@ alias agug='sudo apt-get upgrade' # ag
|
|||
alias aguu='sudo apt-get update && sudo apt-get upgrade' #adg
|
||||
alias agar='sudo apt-get autoremove'
|
||||
|
||||
compdef _ag ag='sudo apt-get'
|
||||
if [[ -z $AG_COMMAND ]]; then
|
||||
compdef _ag ag='sudo apt-get'
|
||||
fi
|
||||
compdef _aga aga='sudo apt-get autoclean'
|
||||
compdef _agb agb='sudo apt-get build-dep'
|
||||
compdef _agc agc='sudo apt-get clean'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue