Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,18 @@ indent_size = 2
indent_style = unset
indent_size = unset

# Shell
# Shell: shfmt reads this section, and its switch_case_indent default (false)
# would move every indented `case` branch one level left on any edit.
[*.{sh,bash}]
indent_size = 2
switch_case_indent = true

# Extensionless shebang scripts (e.g. vault-exec): `[[shell]]` is a shfmt
# extension, outside the EditorConfig spec, that matches any file shfmt detects
# as shell (bash included). Editors that do not know it match nothing here.
[[shell]]
indent_size = 2
switch_case_indent = true

# Windows batch: cmd.exe requires CRLF.
[*.{cmd,bat}]
Expand Down
Loading