fork/fish-shell

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

Johannes Altmanningershare/**.fish: reformat with fish_indent13edce367

master
1.3 KiB25 linesraw
1if chown --version &>/dev/null # gee, and you is not eunichs
2    complete chown -s c -l changes -d "Output diagnostic for changed files"
3    complete chown -l dereference -d "Dereference symbolic links"
4    complete chown -s h -l no-dereference -d "Do not dereference symbolic links"
5    complete chown -l from -d "Change from owner/group"
6    complete chown -s f -l silent -d "Suppress errors"
7    complete chown -l reference -d "Use same owner/group as file" -r
8    complete chown -s R -l recursive -d "Operate recursively"
9    complete chown -s v -l verbose -d "Output diagnostic for every file"
10    complete chown -l help -d "Display help and exit"
11    complete chown -l version -d "Display version and exit"
12else
13    complete chown -s R -d 'Operate recursively'
14    complete chown -s f -d "Suppress errors"
15    complete chown -s h -d "Do not dereference symbolic links"
16    complete chown -s n -d "uid/gid is numeric; avoid lookup"
17    complete chown -s v -d "Output filenames as modified"
18    complete chown -s x -d "Don't traverse fs mount points"
19end
20
21complete chown -s H -d "Follow given symlinks with -R"
22complete chown -s L -d "Follow all symlinks with -R"
23complete chown -s P -d "Follow no symlinks with -R"
24complete chown -d User -a "(__fish_print_users):"
25complete chown -d User -a "(string match -r -- '.*:' (commandline -ct))(__fish_complete_groups)"