fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
2e55e3454
master
1# Completions for gio (a part of GLib) 2 3# Scheme name (see: https://wiki.gnome.org/Projects/gvfs/schemes) 4set -l supported_schemes admin afc afp archive burn cdda computer dav dav+sd davs davs+sd dns-sd file ftp ftpis ftps google-drive gphoto2 http https localtest mtp network nfs recent sftp smb ssh test trash 5 6for schemein $supported_schemes 7complete -c gio -n"__fish_seen_subcommand_from cat copy info list mkdir monitor mount move open rename remove save set trash tree" -a" $scheme " : -d Scheme 8end 9 10# Commands 11complete -f -c gio -n __fish_use_subcommand -a help -d"Print help" 12complete -f -c gio -n __fish_use_subcommand -a version -d"Print version" 13complete -f -c gio -n __fish_use_subcommand -a cat -d"Concatenate files to stdout" 14complete -f -c gio -n __fish_use_subcommand -a copy -d"Copy files" 15complete -f -c gio -n __fish_use_subcommand -a info -d"Show information about locations" 16complete -f -c gio -n __fish_use_subcommand -a list -d"List the contents of locations" 17complete -f -c gio -n __fish_use_subcommand -a mime -d"Get or set the handler" 18complete -f -c gio -n __fish_use_subcommand -a mkdir -d"Create directories" 19complete -f -c gio -n __fish_use_subcommand -a monitor -d"Monitor files" 20complete -f -c gio -n __fish_use_subcommand -a mount -d"Mount or unmount the locations" 21complete -f -c gio -n __fish_use_subcommand -a move -d"Move files" 22complete -f -c gio -n __fish_use_subcommand -a open -d"Open files" 23complete -f -c gio -n __fish_use_subcommand -a rename -d"Rename a file" 24complete -f -c gio -n __fish_use_subcommand -a remove -d"Delete files" 25complete -f -c gio -n __fish_use_subcommand -a save -d"Read from stdin and save" 26complete -f -c gio -n __fish_use_subcommand -a set -d"Set a file attribute" 27complete -f -c gio -n __fish_use_subcommand -a trash -d"Move files to the trash" 28complete -f -c gio -n __fish_use_subcommand -a tree -d"Lists the contents of locations in a tree" 29 30# Arguments of help command 31complete -f -c gio -n"__fish_seen_subcommand_from help" -a"version cat copy info list mime mkdir monitor mount move open rename remove save set trash tree" -d Command 32 33# Arguments of mime command 34function __fish_gio_list_mimetypes 35set -l python( __fish_anypython ) || return 36$python -S -c'import mimetypes; mimetypes.inited or mimetypes.init(); print("\n".join(sorted(set(mimetypes.types_map.values()))))' 37end 38 39complete -f -c gio -n"__fish_seen_subcommand_from mime" -a"(__fish_gio_list_mimetypes)" -d"MIME type" 40 41# Common options 42complete -f -c gio -n"__fish_seen_subcommand_from copy move" -s T -l no-target-directory -d"No target directory" 43complete -f -c gio -n"__fish_seen_subcommand_from copy move" -s p -l progress -d"Show progress" 44complete -f -c gio -n"__fish_seen_subcommand_from copy move" -s i -l interactive -d"Prompt before overwrite" 45complete -f -c gio -n"__fish_seen_subcommand_from copy move save" -s b -l backup -d"Backup existing destination files" 46complete -x -c gio -n"__fish_seen_subcommand_from info list" -s a -l attributes -d"The attributes to get" 47complete -f -c gio -n"__fish_seen_subcommand_from info list set" -s n -l nofollow-symlinks -d"Don't follow symbolic links" 48complete -f -c gio -n"__fish_seen_subcommand_from list tree" -s h -l hidden -d"Show hidden files" 49complete -f -c gio -n"__fish_seen_subcommand_from remove trash" -s f -l force -d"Ignore nonexistent files" 50 51# Options of copy command 52complete -f -c gio -n"__fish_seen_subcommand_from copy" -l preserve -d"Preserve all attributes" 53complete -f -c gio -n"__fish_seen_subcommand_from copy" -s P -l no-dereference -d"Never follow symbolic links" 54complete -f -c gio -n"__fish_seen_subcommand_from copy" -l default-permissions -d"Use default permissions" 55 56# Options of info command 57complete -f -c gio -n"__fish_seen_subcommand_from info" -s w -l query-writable -d"List writable attributes" 58complete -f -c gio -n"__fish_seen_subcommand_from info" -s f -l filesystem -d"Get file system info" 59 60# Options of list command 61complete -f -c gio -n"__fish_seen_subcommand_from list" -s l -l long -d"Use a long listing format" 62complete -f -c gio -n"__fish_seen_subcommand_from list" -s d -l print-display-names -d"Print display names" 63complete -f -c gio -n"__fish_seen_subcommand_from list" -s u -l print-uris -d"Print full URIs" 64 65# Options of mkdir command 66complete -f -c gio -n"__fish_seen_subcommand_from mkdir" -s p -l parent -d"Create parent directories" 67 68# Options of monitor command 69complete -r -c gio -n"__fish_seen_subcommand_from monitor" -s d -l dir -d"Monitor a directory" 70complete -r -c gio -n"__fish_seen_subcommand_from monitor" -s f -l file -d"Monitor a file" 71complete -r -c gio -n"__fish_seen_subcommand_from monitor" -s D -l direct -d"Monitor a file directly" 72complete -r -c gio -n"__fish_seen_subcommand_from monitor" -s s -l silent -d"Monitors a file directly without reporting changes" 73complete -f -c gio -n"__fish_seen_subcommand_from monitor" -s n -l no-moves -d"Don't report move events" 74complete -f -c gio -n"__fish_seen_subcommand_from monitor" -s m -l mounts -d"Watch for mount events" 75 76# Options of mount command 77complete -f -c gio -n"__fish_seen_subcommand_from mount" -s m -l mountable -d"Mount as mountable" 78complete -x -c gio -n"__fish_seen_subcommand_from mount" -s d -l device -d"Mount volume" 79complete -f -c gio -n"__fish_seen_subcommand_from mount" -s u -l unmount -d Unmount 80complete -f -c gio -n"__fish_seen_subcommand_from mount" -s e -l eject -d Eject 81complete -x -c gio -n"__fish_seen_subcommand_from mount" -s t -l stop -d"Stop drive" 82complete -x -c gio -n"__fish_seen_subcommand_from mount" -s s -l unmount-scheme -a" $supported_schemes " -d"Unmount all mounts with the given scheme" 83complete -f -c gio -n"__fish_seen_subcommand_from mount" -s f -l force -d"Ignore outstanding file operations" 84complete -f -c gio -n"__fish_seen_subcommand_from mount" -s a -l anonymous -d"Use an anonymous user" 85complete -f -c gio -n"__fish_seen_subcommand_from mount" -s l -l list -d List 86complete -f -c gio -n"__fish_seen_subcommand_from mount" -s o -l monitor -d"Monitor events" 87complete -f -c gio -n"__fish_seen_subcommand_from mount" -s i -l detail -d"Show extra information" 88complete -x -c gio -n"__fish_seen_subcommand_from mount" -l tcrypt-pim -d"The numeric PIM when unlocking a VeraCrypt volume" 89complete -f -c gio -n"__fish_seen_subcommand_from mount" -l tcrypt-hidden -d"Mount a TCRYPT hidden volume" 90complete -f -c gio -n"__fish_seen_subcommand_from mount" -l tcrypt-system -d"Mount a TCRYPT system volume" 91 92# Options of move command 93complete -f -c gio -n"__fish_seen_subcommand_from move" -s C -l no-copy-fallback -d"Don't use copy and delete fallback" 94 95# Options of save command 96complete -f -c gio -n"__fish_seen_subcommand_from save" -s c -l create -d"Only create if not existing" 97complete -f -c gio -n"__fish_seen_subcommand_from save" -s a -l append -d"Append to end of file" 98complete -f -c gio -n"__fish_seen_subcommand_from save" -s p -l private -d"Restrict access to the current user" 99complete -f -c gio -n"__fish_seen_subcommand_from save" -s u -l unlink -d"Replace as if the destination didn't exist" 100complete -f -c gio -n"__fish_seen_subcommand_from save" -s v -l print-etag -d"Print new etag at end" 101complete -x -c gio -n"__fish_seen_subcommand_from save" -s e -l etag -d"The etag of the file being overwritten" 102 103# Options of set command 104complete -x -c gio -n"__fish_seen_subcommand_from set" -s t -l type -d"Type of the attribute" 105 106# Options of trash command 107complete -f -c gio -n"__fish_seen_subcommand_from trash" -l empty -d"Empty the trash" 108 109# Options of tree command 110complete -f -c gio -n"__fish_seen_subcommand_from tree" -s l -l follow-symlinks -d"Follow symbolic links"