Forráskód Böngészése

Split config link

Link by app instead of linking everything at once. Keep more control and
prevent config overwrite.
DricomDragon 4 éve
szülő
commit
9a1d370a92
3 módosított fájl, 15 hozzáadás és 3 törlés
  1. 7 1
      Install/basic-custom
  2. 3 2
      Install/dev-custom
  3. 5 0
      Install/ui-custom

+ 7 - 1
Install/basic-custom

@@ -1,9 +1,15 @@
 #!/usr/bin/fish
 
 # Link resources
-ln --relative --symbolic Templates/config $HOME/.config
 ln --relative --symbolic Templates/bin $HOME/.bin
 
+# Ensure config folder existance
+mkdir --parents $HOME/.config
+
+# Basic config
+cp --link Templates/config/screenrc $HOME/.config/screenrc
+ln --relative --symbolic Templates/config/fish $HOME/.config/fish
+
 # Export environment variables
 set --export --universal JHE 'jovian-hersemeule.eu'
 set --export --universal EDITOR 'vi -e'

+ 3 - 2
Install/dev-custom

@@ -1,7 +1,8 @@
 #!/usr/bin/fish
 
-# Customize vim configuration
-cp --link ./Templates/vimrc ~/.vim/vimrc
+# Customize configurations
+cp --link ./Templates/vimrc $HOME/.vim/vimrc
+cp --link Templates/config/gitignore $HOME/.config/gitignore
 
 # Set bat color theme
 set --export --universal BAT_THEME GitHub

+ 5 - 0
Install/ui-custom

@@ -1,4 +1,9 @@
 #!/usr/bin/fish
 
+# Link ui apps config
+ln --relative --symbolic Templates/config/alacritty $HOME/.config/alacritty
+ln --relative --symbolic Templates/config/i3 $HOME/.config/i3
+ln --relative --symbolic Templates/config/i3status $HOME/.config/i3status
+
 # Set default app for Mime-type
 xdg-mime default atril.desktop application/pdf