Bootstrap : Add Editorconfig.
This commit is contained in:
parent
ec91fbef54
commit
ff07b915af
|
@ -25,3 +25,33 @@ function bootstrap_grub() {
|
|||
function bootstrap_ffmpeg() {
|
||||
flatpak install org.kde.kdenlive
|
||||
}
|
||||
|
||||
# Install Editorconfig file (with tabs) in current directory.
|
||||
function bootstrap_editorconfig() {
|
||||
echo "\
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
indent_style = tab
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
" > .editorconfig
|
||||
}
|
||||
|
||||
# Install Editorconfig file (with specified spaces, 8 by default) in current directory.
|
||||
# Usage: bootstrap_editorconfig_space [AMOUNT]
|
||||
function bootstrap_editorconfig_space() {
|
||||
local spaces="${1}"
|
||||
[[ "${spaces}" = "" ]] && spaces=8
|
||||
|
||||
echo "\
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = ${spaces}
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
" > .editorconfig
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue