better export

This commit is contained in:
Mylloon 2023-10-08 19:28:21 +02:00
parent 516beff5dc
commit fdfa68ac62
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -6,7 +6,9 @@ alias mirrors_update "curl -s 'https://archlinux.org/mirrorlist/?country=FR&coun
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-export "tar czf '$HOME/SSH.tar.gz' $HOME/.ssh"
alias ssh-export "cd $HOME/.ssh && \
tar cz --exclude='known_hosts*' -X 'environment' -f '$HOME/SSH.tar.gz' * && \
if not test $PWD -ef $HOME/.ssh; cd -; end; true"
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; \