summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig20
1 files changed, 20 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000..15230cdb
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,20 @@
+root = true
+
+[*.{sh,bash}]
+indent_style = space
+indent_size = 2
+simplify = true
+binary_next_line = true
+switch_case_indent = true
+space_redirects = true
+function_next_line = false
+
+# also bash scripts.
+[{install,uninstall,bin/fzf-preview.sh,bin/fzf-tmux}]
+indent_style = space
+indent_size = 2
+simplify = true
+binary_next_line = true
+switch_case_indent = true
+space_redirects = true
+function_next_line = false