mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 23:09:27 -05:00
install: better link install
Remove links if not already linked before linking
This commit is contained in:
@@ -12,9 +12,10 @@ update-repo scripts $dist
|
||||
|
||||
# Install to path
|
||||
mkdir -p ~/.local/bin
|
||||
ln -sf $dist/main.fish ~/.local/bin/caelestia
|
||||
install-link $dist/main.fish ~/.local/bin/caelestia
|
||||
|
||||
# Install completions
|
||||
test -e $CONFIG/fish/completions/caelestia.fish && rm $CONFIG/fish/completions/caelestia.fish
|
||||
mkdir -p $CONFIG/fish/completions
|
||||
cp $dist/completions/caelestia.fish $CONFIG/fish/completions/caelestia.fish
|
||||
|
||||
|
||||
Reference in New Issue
Block a user