fix: toggle-resion
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user