Git bash tab completion for .sh files
Asked Answered
F

1

20

I'm using msysgit on windows 7 and I found bash scripting very useful. I wrote some .sh scripts, but I'd like git bash to autocomplete their names. For now I can see, that after initial prompt git bash autocompletes only .exe, .bat and .com files. How can I allow autocompletion for .sh files?

Fettling answered 12/12, 2012 at 15:1 Comment(5)
No experience using git under Windows, but what shell are you using?Riehl
The one shipped with msysgit. I think it is bash shell.Fettling
Try without put extension. That's all are shell script. in Program Files x86 / Git / libexec / git-coreFabien
It doesn't work. As I wrote, tab-completion works now for .exe, .com, .bat files.Fettling
I would take a look at the docs for MingW - what msysgit uses.Witenagemot
F
28

I found out that files with #!/bin/sh as first line are autocompleted. It's enough for me.

Fettling answered 15/12, 2012 at 18:30 Comment(2)
Wow! You are my superhero!Onesided
Of course, #!/bin/sh. It worked for me, so I have done it right :-)Fettling

© 2022 - 2024 — McMap. All rights reserved.