From 65b7b6793813db33e590e5f6c25df036ee9da08d Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 20 Apr 2014 18:07:32 +0300 Subject: [PATCH] bashrc & zshrc: there is probably no reason to do same with Fedora. If dnf exists, alias yum=dnf . --- bashrc | 6 ++++++ zshrc | 6 ++++++ 2 files changed, 12 insertions(+) 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