Files
rainbow-zsh-theme/rainbow-alias.plugin.zsh
T
BlackNet Dev 680f21d796 alias fix
2020-05-15 22:29:52 +02:00

34 lines
755 B
Bash

if (( $+commands[lsd] )); then
alias ls='lsd --color=auto'
else
alias ls='ls --color=auto'
fi
alias ll='ls -al'
if (( $+commands[pacman-mirrors] )); then
alias updmirror='sudo pacman-mirrors -f0 && sudo pacman -Sy'
fi
if (( $+commands[pacman-mirrors] )); then
alias updmirror='sudo reflector -l 200 -n 20 -p http --sort rate --save /etc/pacman.d/mirrorlist && sudo pacman -Sy'
fi
if (( $+commands[yay] )); then
alias update='yay -Syyu --noconfirm'
fi
if (( $+commands[pacman] )); then
alias update='pacman -Syyu --noconfirm'
fi
if (( $+commands[apt] )); then
alias update='sudo apt update; sudo apt upgrade -y'
fi
if [[ '$TERM' != screen* ]]; then
if (( $+commands[neofetch] )); then
neofetch
fi
fi