feat: add ff pouch to clone and install pouch

Clone https://git.yumee.top/laily/.pouch to ~/.pouch and run install.sh.
This commit is contained in:
2026-10-13 16:01:34 +08:00
parent 4fc664d243
commit 2ede67d1c9
3 changed files with 88 additions and 1 deletions
+9
View File
@@ -16,6 +16,7 @@ function ff
"region|Toggle or set CN_REGION (mirror/proxy region)" \
"ssh|SSH init, copy key + add host config, or copy config to remote" \
"dirsize|Show directory sizes (du wrapper)" \
"pouch|Clone and install pouch to ~/.pouch" \
"help|Show this help message"
# 确保 execute-script 可用(在 fish 自动加载前手动引入一次)
@@ -116,6 +117,14 @@ function ff
echo "Error: dirsize script not found at $script_path"
return 1
end
case pouch
set -l script_path ~/.dotfile/script/pouch-install.sh
if test -f $script_path
bash $script_path $argv[2..-1]
else
echo "Error: pouch-install script not found at $script_path"
return 1
end
case region
if not functions -q region_toggle
source ~/.dotfile/fish/functions/region.fish