Files
rainbow-zsh-theme/rainbow-alias.plugin.zsh
T
2021-01-19 20:04:51 +01:00

49 lines
1.1 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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[reflector] )); then
alias updmirror='sudo reflector -l 200 -n 20 -p http --sort rate --save /etc/pacman.d/mirrorlist && sudo pacman -Sy'
fi
if (( $+commands[pacman] )); then
alias update='pacman -Syyu --noconfirm'
fi
if (( $+commands[yay] )); then
alias update='yay -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
else
if (( $+commands[neofetch] && $+commands[lolcat] )); then
neofetch | lolcat
fi
fi
# Set Proxy
function setproxy() {
export {http,https,ftp}_proxy="http://vm-ubuntu-docker:8888"
export no_proxy=localhost,127.0.0.1,192.168.16.0/24
}
# Unset Proxy
function unsetproxy() {
unset {http,https,ftp}_proxy
}