fork/fish-shell

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

NextAlonefeat: more completion for umount (#8908)8a4ee02d2

master
1.6 KiB25 linesraw
1#
2# Completions for the umount command
3#
4
5#
6# Find all mountpoints
7#
8complete -c umount -d "Mount point" -x -a '(__fish_print_mounted)'
9
10complete -c umount -s V -l version -d "Display version"
11complete -c umount -s h -l help -d "Display help"
12complete -c umount -s v -l verbose -d "Say what is being done"
13complete -c umount -s n -l no-mtab -d "Don't write to /etc/mtab"
14complete -c umount -s r -l read-only -d "In case unmounting fails, try to remount read-only"
15complete -c umount -s d -l detach-loop -d "In case the unmounted device was a loop device, also free this loop device"
16complete -c umount -s i -l internal-only -d "Don't call the umount.<type> helpers"
17complete -c umount -s a -l all -d "Unmount all of the file systems described in /etc/mtab"
18complete -c umount -s t -l types -d "Actions should only be taken on file systems of the specified type" -xa "(__fish_print_filesystems)"
19complete -c umount -s O -l test-opts -d "Actions should only be taken on file systems with the specified options in /etc/fstab" -xa '(cut -d " " -f 4 /etc/mtab)\t"Mount option"'
20complete -c umount -s f -l force -d "Force unmount (in case of an unreachable NFS system)"
21complete -c umount -s l -l lazy -d "Lazy unmount (unmount a 'busy' filesystem)"
22complete -c umount -s R -l recursive -d "Recursively unmount a target with all its children"
23complete -c umount -s A -l all-targets -d "Unmount all mountpoints for the given device in the current namespaces"
24complete -c umount -s c -l no-canonicalize -d "Don't canonicalize paths"
25complete -c umount -l fake -d "dry run; skip the umount(2) syscall"