Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 4056

Programming • Re: [Bash] Troubles to write a bash completion file

$
0
0

I'm not a proficient scripter so take this with a grain of salt.
Your script is reading from a config file to know what to play so bash wouldn't complete. If you somehow made elettrica an option/switch in your script the bash would see it for tab complete. Then you could read the config so it knows what to do with it.

Code:

radio -elettrica

You could probaly do it all without a config file using if and then.

Statistics: Posted by eriefisher — 2026-01-21 18:31



Viewing all articles
Browse latest Browse all 4056

Trending Articles