better export
This commit is contained in:
parent
516beff5dc
commit
fdfa68ac62
1 changed files with 3 additions and 1 deletions
|
@ -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 pacman-clean "sudo pacman -Rsn \$(pacman -Qqtd) --noconfirm"
|
||||||
alias untgz "tar xvzf"
|
alias untgz "tar xvzf"
|
||||||
alias paru-rebuild "checkrebuild | awk '{print \$2}' | xargs -r paru -S --rebuild=all --noconfirm"
|
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/* && \
|
alias ssh-fix "sudo chown $USER:$(id -gn) $HOME/.ssh/* && \
|
||||||
sudo chmod u=r,g=,o= $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/*.pub; \
|
||||||
|
|
Loading…
Reference in a new issue