Its better when it works

This commit is contained in:
Mylloon 2023-10-08 19:41:13 +02:00
parent fdfa68ac62
commit 1837aae7cc
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 12 additions and 3 deletions

View file

@ -6,9 +6,6 @@ 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 "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; \

View file

@ -0,0 +1,11 @@
function ssh-export
# Save the entry directory
set entry_directory $PWD
# Create the archive
cd $HOME/.ssh
tar cz --exclude='known_hosts*' -X environment -f '$HOME/SSH.tar.gz' *
# Returns to the entry directory
cd $entry_directory
end

View file

@ -48,6 +48,7 @@ sync-dotconfig:
@$(WGET) $(REPO_SRC)/.config/fish/functions/fish_prompt.fish -O $(HOME)/.config/fish/functions/fish_prompt.fish @$(WGET) $(REPO_SRC)/.config/fish/functions/fish_prompt.fish -O $(HOME)/.config/fish/functions/fish_prompt.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/makeaway.fish -O $(HOME)/.config/fish/functions/makeaway.fish @$(WGET) $(REPO_SRC)/.config/fish/functions/makeaway.fish -O $(HOME)/.config/fish/functions/makeaway.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/ssh-export.fish -O $(HOME)/.config/fish/functions/ssh-export.fish
@$(WGET) $(REPO_SRC)/.config/fish/conf.d/abbr.fish -O $(HOME)/.config/fish/conf.d/abbr.fish @$(WGET) $(REPO_SRC)/.config/fish/conf.d/abbr.fish -O $(HOME)/.config/fish/conf.d/abbr.fish
@$(WGET) $(REPO_SRC)/.config/fish/conf.d/alias.fish -O $(HOME)/.config/fish/conf.d/alias.fish @$(WGET) $(REPO_SRC)/.config/fish/conf.d/alias.fish -O $(HOME)/.config/fish/conf.d/alias.fish