summaryrefslogtreecommitdiffstats
path: root/skripti/completion.bash
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-06-03 18:54:14 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-06-03 18:54:14 +0200
commit3a239dd1b3bc6536ea663ab12567f7a9b71dfbeb (patch)
treedc51ea1b9dc4429546c50dd54d232e81dd0538fd /skripti/completion.bash
parentds2teor (diff)
parentrazne stvari iz b (diff)
downloadr-3a239dd1b3bc6536ea663ab12567f7a9b71dfbeb.tar
r-3a239dd1b3bc6536ea663ab12567f7a9b71dfbeb.tar.gz
r-3a239dd1b3bc6536ea663ab12567f7a9b71dfbeb.tar.bz2
r-3a239dd1b3bc6536ea663ab12567f7a9b71dfbeb.tar.lz
r-3a239dd1b3bc6536ea663ab12567f7a9b71dfbeb.tar.xz
r-3a239dd1b3bc6536ea663ab12567f7a9b71dfbeb.tar.zst
r-3a239dd1b3bc6536ea663ab12567f7a9b71dfbeb.zip
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