diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7801342 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/readme.md b/README.md similarity index 95% rename from readme.md rename to README.md index 811b526..23a1f40 100644 --- a/readme.md +++ b/README.md @@ -23,4 +23,4 @@ echo "This is ${RED}red text${NC}" ## License -MIT \ No newline at end of file +[MIT License](LICENSE) diff --git a/example/usage.sh b/example/usage.sh index cb2d6e7..01ed2f7 100755 --- a/example/usage.sh +++ b/example/usage.sh @@ -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)}' \ No newline at end of file +} | awk '{printf "'${GRAY}[${HOSTNAME}'] ['$(basename "$0")']'${NC}' %s\n", $0; fflush(stdout)}'