Add pacman aliases
This commit is contained in:
parent
7f53c187bb
commit
d338debbf1
|
@ -40,11 +40,13 @@ alias mount="udisksctl mount -b"
|
|||
alias unmount="udisksctl unmount -b"
|
||||
alias unlock="udisksctl unlock -b"
|
||||
alias lock="udisksctl lock -b"
|
||||
(( ${+commands[nvim]} )) && alias vim="nvim"
|
||||
(( ${+commands[tmux]} )) && alias tmux="tmux -2u"
|
||||
(( ${+commands[dotnet]} )) && alias dnup="dotnet tool list --global | tail -n +3 | awk '{print \$1}' | xargs -l dotnet tool update --global"
|
||||
|
||||
# Platform specific
|
||||
if [[ $(uname -o) == "Android" ]]; then
|
||||
# Package management
|
||||
alias pkgin="pkg install"
|
||||
alias pkgrm="pkg uninstall --purge"
|
||||
alias pkgqi="dpkg -s"
|
||||
|
@ -60,6 +62,8 @@ elif [[ $(uname -o) == "GNU/Linux" ]]; then
|
|||
alias pacqs="pacman -Qs"
|
||||
alias pacsi="pacman -Si"
|
||||
alias pacss="pacman -Ss"
|
||||
alias pacls="pacman -Qkl"
|
||||
alias pacown="pacman -Qo"
|
||||
elif [[ $(lsb_release -si) == "Fedora" ]]; then
|
||||
alias dnfin="sudo dnf install"
|
||||
alias dnfrm="sudo dnf remove"
|
||||
|
@ -79,7 +83,6 @@ elif [[ $(uname -o) == "GNU/Linux" ]]; then
|
|||
if [[ $(lsb_release -si) == "Artix" ]] || [[ $(lsb_release -si) == "Fedora" ]]; then
|
||||
alias btctl="bluetoothctl"
|
||||
alias open="xdg-open"
|
||||
alias vim="nvim"
|
||||
|
||||
if [[ $(lsb_release -si) == "Artix" ]]; then
|
||||
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
|
||||
|
|
Loading…
Reference in a new issue