diff --git a/bashrc b/bashrc index fdec12ff..26d6b86e 100644 --- a/bashrc +++ b/bashrc @@ -482,6 +482,14 @@ pkcs11so=`locate opensc-pkcs11.so` alias ssh-add-sc="ssh-add -s $opensc-pkcs11.so" alias ssh-add-sc-pub="ssh-add -L" +# apt in Ubuntu 14.04+ and other distributions + +if [ -f /usr/bin/apt ]; then + alias aptitude=apt + alias apt-get=apt + alias apt-cache=apt +fi + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index 7a7b5e2d..876b9f7f 100644 --- a/zshrc +++ b/zshrc @@ -455,6 +455,14 @@ pkcs11so=`locate opensc-pkcs11.so` alias ssh-add-sc="ssh-add -s $pkcs11so" alias ssh-add-sc-pub="ssh-add -L" +# apt in Ubuntu 14.04+ and other distributions + +if [ -f /usr/bin/apt ]; then + alias aptitude=apt + alias apt-get=apt + alias apt-cache=apt +fi + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases