feat: udpate fish

This commit is contained in:
2026-09-16 21:44:25 +08:00
parent 0b2d2b6c6d
commit 2060bbd23a
5 changed files with 240 additions and 1 deletions
+6 -1
View File
@@ -32,8 +32,13 @@ function ff
for __f in ~/.dotfile/fish/functions/*.fish
functions -e (basename $__f .fish) 2>/dev/null
end
set -e __f
source ~/.config/fish/config.fish
# fish 对已加载过的 autoload 函数不会在 functions -e 后重新加载,
# 必须显式 source 一遍,否则函数(含 ff 自身)会丢失
for __f in ~/.dotfile/fish/functions/*.fish
source $__f
end
set -e __f
echo "Fish configuration reloaded!"
case edit
vim ~/.config/fish/custom.fish