fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningerstatus get-file: simplify wrapperd19c92776

master
227 B10 linesraw
1# localization: skip(private)
2function __fish_config_with_file
3    set -l path $argv[1]
4    set -l cmd $argv[2..]
5    if string match -rq -- ^/ $path
6        $cmd $path
7    else
8        status get-file $path | $cmd
9    end
10end