From 178253be0ada30420f39720e7e0fa4ee4058bce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 1 Jun 2024 23:00:49 +0200 Subject: razne stvari iz b --- skripti/completion.bash | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 skripti/completion.bash (limited to 'skripti/completion.bash') 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 -- cgit v1.2.3