fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
f03113d04
master
1# localization: skip(private) 2function __fish_cache_put 3set -l cache_file$argv [ 1 ] 4touch $cache_file 5set -l dir( path dirname$cache_file ) 6chown --reference=$dir $cache_file 2> /dev/null|| 7chown ( 8if stat --version2>&1 | string match -q'BusyBox*' 9stat -c'%u:%g' $dir 10else 11stat --format'%u:%g' $dir 2> /dev/null|| 12stat -f'%u:%g' $dir 13end 14) $cache_file 15end