# ~/.editorconfig

root = true

# Default for all files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# Shell scripts: 2 spaces, no tabs
[*.sh]
indent_style = space
indent_size = 2

[*.bash]
indent_style = space
indent_size = 2

[*.zsh]
indent_style = space
indent_size = 2

[*.bats]
indent_style = space
indent_size = 2

[*.cmd]
indent_style = space
indent_size = 2
end_of_line = crlf

[*.bat]
indent_style = space
indent_size = 2
end_of_line = crlf

# Also apply to Makefile if you want (optional)
[Makefile]
indent_style = tab
indent_size = 4