bashrc & zshrc: there is probably no reason to do same with Fedora.

If dnf exists, alias yum=dnf .
This commit is contained in:
Mikaela Suomalainen 2014-04-20 18:07:32 +03:00
parent d2fc565a8a
commit 65b7b67938
2 changed files with 12 additions and 0 deletions

6
bashrc
View File

@ -490,6 +490,12 @@ if [ -f /usr/bin/apt ]; then
alias apt-cache=apt
fi
# Same as the previous, but for yum --> dnf
if [ -f /usr/bin/dnf ]; then
alias yum=dnf
fi
# Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases

6
zshrc
View File

@ -463,6 +463,12 @@ if [ -f /usr/bin/apt ]; then
alias apt-cache=apt
fi
# Same as the previous, but for yum --> dnf
if [ -f /usr/bin/dnf ]; then
alias yum=dnf
fi
# .aliases
if [ -f ~/.aliases ]; then
source ~/.aliases