diff options
| author | Anton Bobov <anton@bobov.name> | 2025-02-07 00:09:39 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2025-02-07 00:29:42 +0500 |
| commit | 0c03cef044f0c41bc46df270b13d784d5550d439 (patch) | |
| tree | 817e4c55538b9bedbe3f775c3f579a12c240810c | |
| parent | 805c95bdea5bd5feb08d9e26c780e4b1eb624cc3 (diff) | |
zsh: System install commands for other distros
Added commands for Arch and RedHat based.
| -rw-r--r-- | files/.zsh/rc/S50_aliases | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/files/.zsh/rc/S50_aliases b/files/.zsh/rc/S50_aliases index 0717361..8700884 100644 --- a/files/.zsh/rc/S50_aliases +++ b/files/.zsh/rc/S50_aliases @@ -220,12 +220,24 @@ alias docker-dive='docker run -it --rm -v /var/run/docker.sock:/var/run/docker.s # }}} # Package manager {{{ -if is_command aptitude; then +if [ -r /etc/debian_version ] ; then + if is_command aptitude; then alias upa='sudo aptitude -u' alias apurge='sudo aptitude purge --purge-unused' -else + else alias up='sudo apt update; sudo apt upgrade' alias apurge='sudo apt purge' + fi +elif [ -r /etc/arch-release ] ; then + alias ati='sudo pacman -S' + alias acs='sudo pacman -Ss' + alias up='sudo pacman -Syu' + alias apurge='sudo pacman -Rs' +elif [ -r /etc/redhat-release ] ; then + alias ati='sudo dnf install' + alias acs='dnf search' + alias up='sudo dnf upgrade' + alias apurge='sudo dnf remove' fi # }}} |
