# EditorConfig for macOS Development Environment # Compatible with shfmt Google mode and BBEdit # https://editorconfig.org/ # https://claude.ai/share/a1bb615c-7e1d-4090-92cc-a7d86a2a6c99 root = true # Default settings for all files [*] charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true diff = true # Shell scripts (Bash, sh, zsh) [*.{sh,bash,zsh}] indent_style = tab indent_size = 2 # BBEdit: Use tabs for indentation with 2-space display width # shfmt: Google mode uses tabs with 2-space equivalent display # Shell script fragments and sourced files [*.{env,aliases,functions,prompt,history,completion}] indent_style = tab indent_size = 2 # Configuration files that should use spaces [*.{yml,yaml,json,toml}] indent_style = space indent_size = 2 # Markdown files [*.md] indent_style = space indent_size = 2 trim_trailing_whitespace = false # Preserve trailing spaces for line breaks in Markdown # Makefile (requires tabs) [Makefile] indent_style = tab indent_size = 4 # Python files [*.py] indent_style = space indent_size = 4 # Web files [*.{html,css,js,ts}] indent_style = space indent_size = 2 # Git commit messages and other text files [*.{txt,gitcommit,commit_editmsg}] max_line_length = 72