Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
47
rated 0 times [  47] [ 0]  / answers: 1 / hits: 156803  / 1 Year ago, fri, december 30, 2022, 5:09:57

When I use program like svn and I type in Gnome Terminal:



svn upd


and hit Tab it's autocompleted to:



svn update


Is it possible to do something like that in my custom bash script?


More From » bash

 Answers
5

You can use the Programmable Completion. Have look at /etc/bash_completion and /etc/bash_completion.d/* for some examples.


[#42870] Saturday, December 31, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
egantfis

Total Points: 406
Total Questions: 108
Total Answers: 108

Location: Austria
Member since Thu, Jan 7, 2021
3 Years ago
;