summaryrefslogtreecommitdiffstats
path: root/skripti/completion.bash
diff options
context:
space:
mode:
Diffstat (limited to 'skripti/completion.bash')
-rw-r--r--skripti/completion.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/skripti/completion.bash b/skripti/completion.bash
new file mode 100644
index 0000000..fbe834d
--- /dev/null
+++ b/skripti/completion.bash
@@ -0,0 +1,6 @@
+# completion skript za vse stvari v /skripti/
+_service_sh_complete() {
+ [ $1 = $3 ] && { COMPREPLY=($(compgen -W "`service.sh list`" $2)); return; }
+ COMPREPLY=($(compgen -W "`service.sh $3 list`" $2))
+}
+complete -F _service_sh_complete service.sh