fix: toggle-resion

This commit is contained in:
2026-06-27 11:20:47 +08:00
parent acac6c3650
commit 0548056ca4
5 changed files with 153 additions and 20 deletions
+11 -1
View File
@@ -25,14 +25,24 @@ function execute-script
if test -n "$script_path" -a -f "$script_path"
echo "Running: $script_path"
set -l run_status 0
if test -x $script_path
$script_path $argv[2..-1]
set run_status $status
else if string match -q "*.py" $script_path
python3 $script_path $argv[2..-1]
set run_status $status
else
bash $script_path $argv[2..-1]
set run_status $status
end
return $status
if test "$script_name" = toggle-region
if not functions -q region_apply_from_custom
source ~/.dotfile/fish/functions/region.fish
end
region_apply_from_custom
end
return $run_status
end
echo "Error: Script not found: $script_name"