summaryrefslogtreecommitdiffstats
path: root/completions/e2freefrag
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/e2freefrag24
1 files changed, 24 insertions, 0 deletions
diff --git a/completions/e2freefrag b/completions/e2freefrag
new file mode 100644
index 0000000..c89dc9c
--- /dev/null
+++ b/completions/e2freefrag
@@ -0,0 +1,24 @@
+# e2freefrag(8) completion -*- shell-script -*-
+
+_e2freefrag()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ case $prev in
+ -c | -h)
+ return
+ ;;
+ esac
+
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_usage "$1" -h)' -- "$cur"))
+ return
+ fi
+
+ cur=${cur:=/dev/}
+ _filedir
+} &&
+ complete -F _e2freefrag e2freefrag
+
+# ex: filetype=sh