aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/umount.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-17 20:13:39 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-17 20:13:39 +1000
commit343cafef346543282b5b6e825bc8f9dd10028a48 (patch)
tree1bcf221ecb525c7aeadc8325e7b780d3656e544b /share/completions/umount.fish
parent95a01f3c8f15034433ffce368d8f2d13d925139c (diff)
Redo installation file structure, move lots of things to $PREFIX/share/fish
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
Diffstat (limited to 'share/completions/umount.fish')
-rw-r--r--share/completions/umount.fish22
1 files changed, 22 insertions, 0 deletions
diff --git a/share/completions/umount.fish b/share/completions/umount.fish
new file mode 100644
index 00000000..d69e7563
--- /dev/null
+++ b/share/completions/umount.fish
@@ -0,0 +1,22 @@
+#
+# Completions for the umount command
+#
+
+#
+# Find all mountpoints
+#
+complete -c umount -d (_ "Mount point") -x -a '(cat /etc/mtab | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|grep "^/")'
+
+complete -c umount -s V -d (_ "Display version and exit")
+complete -c umount -s h -d (_ "Display help and exit")
+complete -c umount -s v -d (_ "Verbose mode")
+complete -c umount -s n -d (_ "Unmount without writing in /etc/mtab")
+complete -c umount -s r -d (_ "In case unmounting fails, try to remount read-only")
+complete -c umount -s d -d (_ "In case the unmounted device was a loop device, also free this loop device")
+complete -c umount -s i -d (_ "Don't call the /sbin/umount.<filesystem> helper even if it exists")
+complete -c umount -s a -d (_ "Unmount all of the file systems described in /etc/mtab")
+complete -c umount -s t -d (_ "Actions should only be taken on file systems of the specified type") -xa "(__fish_print_filesystems)"
+complete -c umount -s O -d (_ "Actions should only be taken on file systems with the specified options in /etc/fstab") -xa '(cat /etc/mtab | cut -d " " -f 4)\t"Mount option"'
+complete -c umount -s f -d (_ "Force unmount (in case of an unreachable NFS system)")
+complete -c umount -s l -d (_ "Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy")
+