added editorconfig

This commit is contained in:
2024-03-28 17:24:38 +03:00
parent 8deb6830e7
commit 7c86af8f0b
3 changed files with 17 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
[*.sh]
indent_size = 2
+1 -1
View File
@@ -23,4 +23,4 @@ echo "This is ${RED}red text${NC}"
## License
MIT
[MIT License](LICENSE)
+1 -1
View File
@@ -49,4 +49,4 @@ echo -e "${GRAY}----------------------------------------------------------------
echo "Every line will be prefixed with hostname and script name"
printf "${GREEN}%s${NC}\n" "This is green text"
printf "${RED}%s${NC}\n" "This is red text"
} | awk '{printf "'${GRAY}[${HOSTNAME}'] ['$(basename "$0")']'${NC}' %s\n", $0; fflush(stdout)}'
} | awk '{printf "'${GRAY}[${HOSTNAME}'] ['$(basename "$0")']'${NC}' %s\n", $0; fflush(stdout)}'