Update aliases.zsh
This commit is contained in:
parent
00bd6e0dd5
commit
f2eb3a4b89
|
@ -37,17 +37,12 @@ alias grep="grep --color=always"
|
|||
alias ls="ls --color=always"
|
||||
alias q="exit 0"
|
||||
alias zgrep="zgrep --color=always"
|
||||
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"
|
||||
|
@ -55,41 +50,41 @@ if [[ $(uname -o) == "Android" ]]; then
|
|||
alias pkgsi="pkg info"
|
||||
alias pkgss="pkg search"
|
||||
elif [[ $(uname -o) == "GNU/Linux" ]]; then
|
||||
# Package management
|
||||
if [[ $(lsb_release -si) == "Artix" ]]; then
|
||||
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
|
||||
alias pacin="doas pacman -S"
|
||||
alias pacrm="doas pacman -Rcnsu"
|
||||
alias pacqi="pacman -Qi"
|
||||
alias pacqs="pacman -Qs"
|
||||
alias pacsi="pacman -Si"
|
||||
alias pacss="pacman -Ss"
|
||||
alias pacls="pacman -Qkl"
|
||||
alias pacown="pacman -Qo"
|
||||
alias pacqi="pacman -Qi"
|
||||
alias pacqs="pacman -Qs"
|
||||
alias pacrm="doas pacman -Rcnsu"
|
||||
alias pacsi="pacman -Si"
|
||||
alias pacss="pacman -Ss"
|
||||
alias poweroff="doas poweroff"
|
||||
alias reboot="doas reboot"
|
||||
alias usb="doas usbctl tmp"
|
||||
elif [[ $(lsb_release -si) == "Fedora" ]]; then
|
||||
alias dnfin="sudo dnf install"
|
||||
alias dnfrm="sudo dnf remove"
|
||||
alias dnfqs="sudo dnf list installed"
|
||||
alias dnfrm="sudo dnf remove"
|
||||
alias dnfsi="sudo dnf info"
|
||||
alias dnfss="sudo dnf search"
|
||||
elif [[ $(lsb_release -si) == "Debian" ]] || [[ $(lsb_release -si) == "Ubuntu" ]]; then
|
||||
alias aptin="sudo apt install"
|
||||
alias aptrm="sudo apt purge"
|
||||
alias aptqi="dpkg -s"
|
||||
alias aptqs="dpkg -l"
|
||||
alias aptrm="sudo apt purge"
|
||||
alias aptsi="apt info"
|
||||
alias aptss="apt search"
|
||||
fi
|
||||
|
||||
# Misc.
|
||||
alias lock="udisksctl lock -b"
|
||||
alias mount="udisksctl mount -b"
|
||||
alias unlock="udisksctl unlock -b"
|
||||
alias unmount="udisksctl unmount -b"
|
||||
|
||||
if [[ $(lsb_release -si) == "Artix" ]] || [[ $(lsb_release -si) == "Fedora" ]]; then
|
||||
alias btctl="bluetoothctl"
|
||||
alias open="xdg-open"
|
||||
|
||||
if [[ $(lsb_release -si) == "Artix" ]]; then
|
||||
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
|
||||
alias poweroff="doas poweroff"
|
||||
alias reboot="doas reboot"
|
||||
alias usb="doas usbctl tmp"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue