__fish_data_with_file: better variable name

This commit is contained in:
Johannes Altmanninger
2025-10-14 10:14:00 +02:00
parent fed2714e30
commit 48bdf24964

View File

@@ -1,10 +1,10 @@
# localization: skip(private)
function __fish_data_with_file
set -l file $argv[1]
set -l path $argv[1]
set -l cmd $argv[2..]
if set -q __fish_data_dir[1]
$cmd $__fish_data_dir/$file
$cmd $__fish_data_dir/$path
else
status get-file $file | $cmd
status get-file $path | $cmd
end
end