I would like to be able to do the equivalent of chmod +x file.sh
on msys2. This would appear to be possible in some way, since executable files that I have checked out of git have a "+x" permission. But new files that I create for myself do not.
I have read answers such as this: Msys shell command to change the attributes of a file
I realise that msys2 is minimal and does not directly map permissions to windows ones, and that the "+x" permission will not make the file executable or otherwise. But what msys2 gives as the permission seems to affect completion. It is irritating to have some files.sh
autocompleting on tab and some not.
For scripts, ensure that they begin with a shebang. For shell scripts, try:
#!/bin/bash
This should cause MSYS2 to believe the file is executable, and allow tab completion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With