about summary refs log tree commit diff
path: root/fish/@install
diff options
context:
space:
mode:
Diffstat (limited to 'fish/@install')
-rwxr-xr-xfish/@install19
1 files changed, 19 insertions, 0 deletions
diff --git a/fish/@install b/fish/@install
new file mode 100755
index 0000000..63c8393
--- /dev/null
+++ b/fish/@install
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+[ ! -d "${XDG_CONFIG_HOME}/fish" ] &&
+    mkdir -p "${XDG_CONFIG_HOME}/fish"
+
+[ ! -d "${XDG_CONFIG_HOME}/fish/completions" ] &&
+    mkdir -p "${XDG_CONFIG_HOME}/fish/completions"
+
+[ ! -d "${XDG_CONFIG_HOME}/fish/conf.d" ] &&
+    mkdir -p "${XDG_CONFIG_HOME}/fish/conf.d"
+
+[ ! -d "${XDG_CONFIG_HOME}/fish/functions" ] &&
+    mkdir -p "${XDG_CONFIG_HOME}/fish/functions"
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    fish

Consider giving Nix/NixOS a try! <3