Its better when it works
This commit is contained in:
parent
fdfa68ac62
commit
1837aae7cc
3 changed files with 12 additions and 3 deletions
|
@ -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; \
|
||||||
|
|
11
.config/fish/functions/ssh-export.fish
Normal file
11
.config/fish/functions/ssh-export.fish
Normal 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
|
1
Makefile
1
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue