confOS/.config/fish/conf.d/alias.fish
2023-11-08 16:25:57 +01:00

14 lines
895 B
Fish

#!/usr/bin/fish
alias activate "source bin/activate.fish"
alias gc "git clone"
alias mirrors_update "curl -s 'https://archlinux.org/mirrorlist/?country=FR&country=GB&protocol=https&use_mirror_status=on' | sed -e 's/^#Server/Server/' -e '/^#/d' | sudo bash -c 'rankmirrors -n 7 - > /etc/pacman.d/mirrorlist' && sudo pacman -Syy"
alias pacman-clean "sudo pacman -Rsn \$(pacman -Qqtd) --noconfirm"
alias untgz "tar xvzf"
alias paru-rebuild "checkrebuild | awk '{print \$2}' | xargs -r paru -S --rebuild=all --noconfirm"
alias ssh-fix "sudo chown $USER:$(id -gn) $HOME/.ssh/* && \
sudo chmod u=r,g=,o= $HOME/.ssh/*; \
sudo chmod u=r,g=r,o=r $HOME/.ssh/*.pub; \
sudo chmod u=r,g=r,o=r $HOME/.ssh/config; \
sudo chmod u=rw,g=,o= $HOME/.ssh/environment 2>/dev/null; \
sudo chmod u=rw,g=,o= $HOME/.ssh/known_hosts 2>/dev/null"