summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-22 22:58:43 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-22 22:58:43 +1100
commit9c1000a5e987f96cb37114e217023266f283d67f (patch)
tree30e9a6af6aa56a7b61f98d56347c33a5ade95787 /install
parentinstall: all subcommand (diff)
downloadcaelestia-cli-9c1000a5e987f96cb37114e217023266f283d67f.tar.gz
caelestia-cli-9c1000a5e987f96cb37114e217023266f283d67f.tar.bz2
caelestia-cli-9c1000a5e987f96cb37114e217023266f283d67f.zip
install: fish module
Contains fish config + greeting, starship config and fastfetch config
Diffstat (limited to 'install')
-rwxr-xr-xinstall/fish.fish29
-rwxr-xr-xinstall/hypr.fish2
2 files changed, 30 insertions, 1 deletions
diff --git a/install/fish.fish b/install/fish.fish
new file mode 100755
index 0000000..10df9b7
--- /dev/null
+++ b/install/fish.fish
@@ -0,0 +1,29 @@
+#!/bin/fish
+
+. (dirname (status filename))/util.fish
+
+install-deps git starship fastfetch
+
+set -l dist $C_DATA/fish
+
+# Update/Clone repo
+update-repo fish $dist
+
+# Install fish config
+confirm-overwrite $CONFIG/fish/config.fish
+ln -s $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 starship config
+confirm-overwrite $CONFIG/starship.toml
+ln -s $dist/starship.toml $CONFIG/starship.toml
+
+# Install fastfetch config
+confirm-overwrite $CONFIG/fastfetch/config.jsonc
+ln -s $dist/fastfetch.jsonc $CONFIG/fastfetch/config.jsonc
+
+log 'Done.'
diff --git a/install/hypr.fish b/install/hypr.fish
index e7761cf..90e99ef 100755
--- a/install/hypr.fish
+++ b/install/hypr.fish
@@ -26,7 +26,7 @@ end
# Install uwsm envs
confirm-overwrite $uwsm
-mv $hypr/uwsm $uwsm
+ln -s $hypr/uwsm $uwsm
# Enable ydotool if installed
pacman -Q ydotool &> /dev/null && systemctl --user enable --now ydotool.service