It's 2 spaces for everything here, even python. I don't like it and don't think I'll ever get used to it, like you say 2 is too little.
Re:Shell Style Guide from Google
by rossjudson on Saturday June 04, 2016 @11:07PM
(#11839441)
Wrong. 3 spaces is the sweet spot. What is it with you people and powers of two? ;)
It is easy to catch an indentation error with two spaces, while it is harder to make an indentation error with just two spaces. It also easier to type two spaces than 3 or 4 spaces, which is important when program is typed without help of an autoindentation tool. Two spaces are enough for fixed length font, typical in terminal, but also saves screen space, which is just 80 characters in width.
Reason: with 2 the visual lines at different indent levels are just too close, in many fonts/sizes.