mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
prepare this .editorconfig for ~/.editorconfig use
This commit is contained in:
parent
e92d6d2f38
commit
6c3a27ffd4
@ -1,7 +1,11 @@
|
|||||||
|
# Note: I use this file as ~/.editorconfig when something doesn't specify to
|
||||||
|
# be root before reaching ~, so this contains files not seen in this repo
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
|
# Defaults
|
||||||
[*]
|
[*]
|
||||||
# Future: https://github.com/editorconfig/editorconfig/issues/89
|
# Future: https://github.com/editorconfig/editorconfig/issues/89
|
||||||
|
# Linux line endings, this repo/file is unlikely to be used in Windows
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
@ -9,7 +13,32 @@ charset = utf-8
|
|||||||
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = tab
|
indent_size = tab
|
||||||
|
# Opinionated affecting only display, better to not set
|
||||||
#tab_width =
|
#tab_width =
|
||||||
|
|
||||||
|
# Windows line-endings for Windows
|
||||||
[*.{reg,bat,ahk}]
|
[*.{reg,bat,ahk}]
|
||||||
end_of_line = crlf
|
end_of_line = crlf
|
||||||
|
|
||||||
|
# Let's ensure *nix is lf although it comes from defaults
|
||||||
|
# above
|
||||||
|
[*.{bash,sh}]
|
||||||
|
end_of_line = lf
|
||||||
|
|
||||||
|
# Python https://peps.python.org/pep-0008/#indentation
|
||||||
|
[*.py]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
# YAML requires spaces
|
||||||
|
[*.{yaml,yml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
# Ruby
|
||||||
|
#[*.rb]
|
||||||
|
# Unofficial Ruby Style guide says two spaces, but Wikipedia says it doesn't
|
||||||
|
# matter so I am going accessibility first and having this commented
|
||||||
|
# https://rubystyle.guide/#spaces-indentation
|
||||||
|
#indent_style = space
|
||||||
|
#indent_size = 2
|
||||||
|
@ -14,6 +14,7 @@ cat .mikaela/gitconfig > ~/.gitconfig
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
cat .mikaela/keys/authorized_keys > ~/.ssh/authorized_keys
|
cat .mikaela/keys/authorized_keys > ~/.ssh/authorized_keys
|
||||||
cat etc/ssh/ssh_config > ~/.ssh/config
|
cat etc/ssh/ssh_config > ~/.ssh/config
|
||||||
|
cat .editorconfig > ~/.editorconfig
|
||||||
touch ~/.MIKAELA_GREP
|
touch ~/.MIKAELA_GREP
|
||||||
set +x
|
set +x
|
||||||
# vim : set ft=sh :
|
# vim : set ft=sh :
|
||||||
|
Loading…
Reference in New Issue
Block a user