aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/10_stow.sh
diff options
context:
space:
mode:
authorshu <nvcsadjkojf@outlook.com>2026-10-27 15:47:16 +0800
committershu <nvcsadjkojf@outlook.com>2026-10-27 15:47:16 +0800
commit75a3ae508522d1e31d690a66f10b031256e6946e (patch)
tree3c71cbaae2be7742f5a7a6c55a80f48fec8c85e4 /scripts/10_stow.sh
parent9625deffb9418533b0e2eaa6cfee83e9efa36ba5 (diff)
为 shell 脚本增加执行顺序
Diffstat (limited to 'scripts/10_stow.sh')
-rwxr-xr-xscripts/10_stow.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/10_stow.sh b/scripts/10_stow.sh
new file mode 100755
index 0000000..8bdcd5b
--- /dev/null
+++ b/scripts/10_stow.sh
@@ -0,0 +1,8 @@
+#/bin/bash
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+DOTFILE_DIR="$(cd $SCRIPT_DIR && cd ../dotfiles && pwd)"
+# echo $DOTFILE_DIR
+
+# add link
+cd $DOTFILE_DIR && stow -d $DOTFILE_DIR -t $HOME --no-folding --adopt */ \ No newline at end of file