2023-03-22 12:30:11 +01:00
|
|
|
#!/usr/bin/fish
|
2023-05-23 00:57:25 +02:00
|
|
|
|
|
|
|
alias activate "source bin/activate.fish"
|
|
|
|
alias gc "git clone"
|
2024-10-21 21:47:15 +02:00
|
|
|
alias mirrors_update "sudo echo 'Updating...'; 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"
|
2024-01-25 00:48:59 +01:00
|
|
|
alias pacman-clean "sudo pacman -Rsn \$(pacman -Qqtd) --noconfirm 2>/dev/null; sudo paccache -rk1"
|
2023-05-23 00:57:25 +02:00
|
|
|
alias untgz "tar xvzf"
|
|
|
|
alias paru-rebuild "checkrebuild | awk '{print \$2}' | xargs -r paru -S --rebuild=all --noconfirm"
|
2023-10-08 19:05:09 +02:00
|
|
|
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"
|
2024-01-03 15:59:29 +01:00
|
|
|
alias pacman-find "pacman -Ss"
|
|
|
|
alias paru-find "paru -Ss"
|