fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9367d4ff7
master
1# completion for defaults (macOS) 2 3function __fish_defaults_domains 4defaults domains| string split", " 5end 6 7complete -f -c defaults -o currentHost -d'Restricts preferences operations to the current logged-in host' 8complete -f -c defaults -o host -d'Restricts preferences operations to hostname' 9 10# read 11complete -f -c defaults -n __fish_use_subcommand -a read -d'Shows defaults entire given domain' 12complete -f -c defaults -n'__fish_seen_subcommand_from read read-type write rename delete' -a'(__fish_defaults_domains)' 13complete -f -c defaults -n'__fish_seen_subcommand_from read read-type write rename delete' -o app 14 15# write 16complete -f -c defaults -n __fish_use_subcommand -a write -d'Writes domain or or a key in the domain' 17complete -f -c defaults -n'__fish_seen_subcommand_from write' -o string -d'String as the value for the given key' 18complete -f -c defaults -n'__fish_seen_subcommand_from write' -o data -d'Raw data bytes for given key' 19complete -f -c defaults -n'__fish_seen_subcommand_from write' -o int -d'Integer as the value for the given key' 20complete -f -c defaults -n'__fish_seen_subcommand_from write' -o float -d'Floating point number as the value for the given key' 21complete -f -c defaults -n'__fish_seen_subcommand_from write' -o bool -d'Boolean as the value for the given key' 22complete -f -c defaults -n'__fish_seen_subcommand_from write' -o date -d'Date as the value for the given key' 23complete -f -c defaults -n'__fish_seen_subcommand_from write' -o array -d'Array as the value for the given key' 24complete -f -c defaults -n'__fish_seen_subcommand_from write' -o array-add -d'Add new elements to the end of an array' 25complete -f -c defaults -n'__fish_seen_subcommand_from write' -o dict -d'Add a dictionary to domain' 26complete -f -c defaults -n'__fish_seen_subcommand_from write' -o dict-add -d'Add new key/value pairs to a dictionary' 27 28complete -f -c defaults -n __fish_use_subcommand -a read-type -d'Shows the type for the given domain, key' 29complete -f -c defaults -n __fish_use_subcommand -a rename -d'Renames old_key to new_key' 30complete -f -c defaults -n __fish_use_subcommand -a delete -d'Deletes domain or a key in the domain' 31complete -f -c defaults -n __fish_use_subcommand -a domains -d'Prints the names of all domains in the users defaults system' 32complete -f -c defaults -n __fish_use_subcommand -a find -d'Searches for word in domain names, keys, and values' 33complete -f -c defaults -n __fish_use_subcommand -a help -d'Prints a list of possible command formats'