fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
b8fd6b5f3
master
1function __attrib_complete_args -d'Function to generate args' 2set -l current_token( commandline -tc) 3 4switch $current_token 5case '+*' 6echo -e'r\tSet the Read-only file attribute 7a\tSet the Archive file attribute 8s\tSet the System file attribute 9h\tSet the Hidden file attribute 10i\tSet the Not Content Indexed file attribute' | awk -F'\t' "{ printf \" $current_token %s\t%s\n\", \$1, \$2 }" 11case '-*' 12echo -e'r\tClear the Read-only file attribute 13a\tClear the Archive file attribute 14s\tClear the System file attribute 15h\tClear the Hidden file attribute 16i\tClear the Not Content Indexed file attribute' | awk -F'\t' "{ printf \" $current_token %s\t%s\n\", \$1, \$2 }" 17end 18end 19 20complete -c attrib -f -a'(__attrib_complete_args)' 21 22complete -c attrib -f -n'__fish_seen_argument -w s' -a d\ 23 -d'Apply attrib and any command-line options to directories' 24complete -c attrib -f -n'__fish_seen_argument -w s' -a l\ 25 -d'Apply attrib and any command-line options to the Symbolic Link' 26 27complete -c attrib -f -a + -d'Set the file attribute' 28complete -c attrib -f -a - -d'Clear the file attribute' 29complete -c attrib -f -a /s\ 30 -d'Apply to matching files in the current directory and all of its subdirectories' 31complete -c attrib -f -a'/?' -d'Show help'