mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
__fish_data_with_file: better variable name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user