Small correction; perhaps you just misspoke, perhaps you're unaware, but that # symbol is not a "hashtag". It's a hash, or the hash symbol. Hashtag is jargon from Twitter, where they used the hash symbol to denote that what followed, up to the next space symbol, was a tag. Hence hash-tag. Why they didn't just call it a tag is anyone's guess, since it's not like they needed to specify it's a _hash_ tag to differentiate it from all the other kinds of tags on the platform.
Thanks for your video,i l leaned a lot. I wonder if the command `local CURRENT_WORD=${COMP_WORDS[COMP_CWORD]}` in line 20 need to be edited as `local CURRENT_WORD=${COMP_WORDS[$COMP_CWORD]}`.
I am new to bash, but not only I understood the concept and how it works, but I also learned a few things along the way! Now I am trying to implement this in some of my scripts and automatically invoke the autocomplete, but I can't make it work properly :/
@@evanugartethanks for the reply! I am using zsh and I am on a mac. What I m working on is a function that provides steps to create a conventional commit. At some point I want the user to select a scope for the commit, and here is where I am trying to invoke the autocomplete function, but when I do so the prompt goes to the next line, and when tab is pressed only some spaces are added.
@@unknownEntity3232 I think auto complete is slightly different in zsh, i don't know the difference at the moment but have been meaning to learn for some time
@@evanugarte I think it has to do with the way that I invoke the autocomplete function inside the commit function. It feels like when the commit function reaches the autocomplete function, it simply prints out the name or something and goes to the next line, so when i press tab I do so in a new line. I belive it's either the autocomplete is not supposed to work as I am trying to make it work or that I am missing some kind of syntax somewhere.
Thanks brother, this worked great for my purposes.
Hi Evan, thank you very much for this, excellent tutorial !
Very clear explanations, thanks a lot !
Thanks a lot. very good tutorial on bash completion.
Small correction; perhaps you just misspoke, perhaps you're unaware, but that # symbol is not a "hashtag". It's a hash, or the hash symbol. Hashtag is jargon from Twitter, where they used the hash symbol to denote that what followed, up to the next space symbol, was a tag. Hence hash-tag.
Why they didn't just call it a tag is anyone's guess, since it's not like they needed to specify it's a _hash_ tag to differentiate it from all the other kinds of tags on the platform.
Thanks for your video,i l leaned a lot. I wonder if the command `local CURRENT_WORD=${COMP_WORDS[COMP_CWORD]}` in line 20 need to be edited as `local CURRENT_WORD=${COMP_WORDS[$COMP_CWORD]}`.
did it only work with the updated line 20? thanks for the suggestion
is there the whole script somewhere
I am new to bash, but not only I understood the concept and how it works, but I also learned a few things along the way!
Now I am trying to implement this in some of my scripts and automatically invoke the autocomplete, but I can't make it work properly :/
are you using a bash terminal?
@@evanugartethanks for the reply! I am using zsh and I am on a mac.
What I m working on is a function that provides steps to create a conventional commit. At some point I want the user to select a scope for the commit, and here is where I am trying to invoke the autocomplete function, but when I do so the prompt goes to the next line, and when tab is pressed only some spaces are added.
@@unknownEntity3232 I think auto complete is slightly different in zsh, i don't know the difference at the moment but have been meaning to learn for some time
@@evanugarte I think it has to do with the way that I invoke the autocomplete function inside the commit function. It feels like when the commit function reaches the autocomplete function, it simply prints out the name or something and goes to the next line, so when i press tab I do so in a new line.
I belive it's either the autocomplete is not supposed to work as I am trying to make it work or that I am missing some kind of syntax somewhere.
nice
the double upload