mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
bashrc & zshrc: there is probably no reason to do same with Fedora.
If dnf exists, alias yum=dnf .
This commit is contained in:
parent
d2fc565a8a
commit
65b7b67938
6
bashrc
6
bashrc
@ -490,6 +490,12 @@ if [ -f /usr/bin/apt ]; then
|
|||||||
alias apt-cache=apt
|
alias apt-cache=apt
|
||||||
fi
|
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 .
|
# Allow custom aliases to be put in .aliases or .bash_aliases .
|
||||||
|
|
||||||
# .aliases
|
# .aliases
|
||||||
|
6
zshrc
6
zshrc
@ -463,6 +463,12 @@ if [ -f /usr/bin/apt ]; then
|
|||||||
alias apt-cache=apt
|
alias apt-cache=apt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Same as the previous, but for yum --> dnf
|
||||||
|
|
||||||
|
if [ -f /usr/bin/dnf ]; then
|
||||||
|
alias yum=dnf
|
||||||
|
fi
|
||||||
|
|
||||||
# .aliases
|
# .aliases
|
||||||
if [ -f ~/.aliases ]; then
|
if [ -f ~/.aliases ]; then
|
||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
|
Loading…
Reference in New Issue
Block a user