mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
__fish_data_with_file: better variable name
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
# localization: skip(private)
|
# localization: skip(private)
|
||||||
function __fish_data_with_file
|
function __fish_data_with_file
|
||||||
set -l file $argv[1]
|
set -l path $argv[1]
|
||||||
set -l cmd $argv[2..]
|
set -l cmd $argv[2..]
|
||||||
if set -q __fish_data_dir[1]
|
if set -q __fish_data_dir[1]
|
||||||
$cmd $__fish_data_dir/$file
|
$cmd $__fish_data_dir/$path
|
||||||
else
|
else
|
||||||
status get-file $file | $cmd
|
status get-file $path | $cmd
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user