mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-06 07:19:29 -05:00
install: better link install
Remove links if not already linked before linking
This commit is contained in:
+4
-8
@@ -10,20 +10,16 @@ set -l dist $C_DATA/fish
|
||||
update-repo fish $dist
|
||||
|
||||
# Install fish config
|
||||
confirm-overwrite $CONFIG/fish/config.fish
|
||||
ln -s $dist/config.fish $CONFIG/fish/config.fish
|
||||
install-link $dist/config.fish $CONFIG/fish/config.fish
|
||||
|
||||
# Install fish greeting
|
||||
confirm-overwrite $CONFIG/fish/functions/fish_greeting.fish
|
||||
mkdir -p $CONFIG/fish/functions
|
||||
ln -s $dist/fish_greeting.fish $CONFIG/fish/functions/fish_greeting.fish
|
||||
install-link $dist/fish_greeting.fish $CONFIG/fish/functions/fish_greeting.fish
|
||||
|
||||
# Install starship config
|
||||
confirm-overwrite $CONFIG/starship.toml
|
||||
ln -s $dist/starship.toml $CONFIG/starship.toml
|
||||
install-link $dist/starship.toml $CONFIG/starship.toml
|
||||
|
||||
# Install fastfetch config
|
||||
confirm-overwrite $CONFIG/fastfetch/config.jsonc
|
||||
ln -s $dist/fastfetch.jsonc $CONFIG/fastfetch/config.jsonc
|
||||
install-link $dist/fastfetch.jsonc $CONFIG/fastfetch/config.jsonc
|
||||
|
||||
log 'Done.'
|
||||
|
||||
Reference in New Issue
Block a user