change logic of config.fish backup

This commit is contained in:
Mylloon 2023-11-06 00:26:14 +01:00
parent 8fbc3159ce
commit e361c82932
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 8 additions and 7 deletions

5
.config/fish/config.fish Normal file
View file

@ -0,0 +1,5 @@
# SSH
fish_ssh_agent
# Opam integration
source /home/anri/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true

View file

@ -1,2 +0,0 @@
# SSH
fish_ssh_agent

View file

@ -1,5 +1,2 @@
# NAS
sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000
# SSH
fish_ssh_agent

View file

@ -47,6 +47,8 @@ sync-dotconfig:
@mkdir -p $(HOME)/.config/fish/conf.d
@mkdir -p $(HOME)/.config/fish/functions
@$(WGET) $(REPO_SRC)/.config/fish/config.fish -O $(HOME)/.config/fish/config.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/ssh-export.fish -O $(HOME)/.config/fish/functions/ssh-export.fish
@ -97,7 +99,6 @@ sync-arch:
@echo
# Fish
@$(WGET) $(REPO_SRC)/.config/fish/config_arch.fish -O $(HOME)/.config/fish/config.fish
@$(WGET) $(REPO_SRC)/.config/fish/conf.d/abbr.fish -O $(HOME)/.config/fish/conf.d/abbr.fish
@$(CURL) $(REPO_SRC)/.config/fish/conf.d/abbr_arch.fish >> $(HOME)/.config/fish/conf.d/abbr.fish
@echo "Fish specific settings synced!"
@ -135,7 +136,7 @@ sync-arch:
# Windows Subsystem for Linux specific
sync-wsl:
# Fish
@$(WGET) $(REPO_SRC)/.config/fish/config_wsl.fish -O $(HOME)/.config/fish/config.fish
@$(CURL) $(REPO_SRC)/.config/fish/config_wsl.fish >> $(HOME)/.config/fish/config.fish
@$(CURL) $(REPO_SRC)/.config/fish/conf.d/abbr_wsl.fish >> $(HOME)/.config/fish/conf.d/abbr.fish
@$(CURL) $(REPO_SRC)/.config/fish/conf.d/alias_wsl.fish >> $(HOME)/.config/fish/conf.d/alias.fish
@echo "Fish specific settings synced!"