diff --git a/bashrc b/bashrc index 26d6b86e..a4ce6826 100644 --- a/bashrc +++ b/bashrc @@ -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 diff --git a/zshrc b/zshrc index 876b9f7f..150e8162 100644 --- a/zshrc +++ b/zshrc @@ -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