I don’t normally develop bash shell scripts but have been lately. The automatic indenting is driving me insane. Some times it works, but most times it assumes some vicious coding style from a time when programmers lived in caves and ate their young. It appears to enforce this archaic format:
if [ -f some_file ]; then do something fi
So when I try to use the modern style all new scripts should be written with:
if [ -f some_file] then do something fi
It shoves the then over to the “do something” alignment". Then when I type the fi it un-indents it. Turning autoindent off means I have to tab everything in myself.
Is there a way to change this functionality? I looked for some configurable language- package, but they all seem to simply allow disabling.