Many updates and improvements

- yamllint
- shfmt config
- fix Go bin path
- fix git credentials config
- add nvm default packages
- updated Brewfile
This commit is contained in:
Ismo Vuorinen
2023-03-28 15:27:44 +03:00
parent 6395895beb
commit bb3f4a8f6c
32 changed files with 189 additions and 103 deletions

View File

@@ -10,14 +10,14 @@ if [ -z "${DIRECTORY}" ]; then
fi
if [ -z "${FILENAME}" ]; then
FILENAME=$DIRECTORY
FILENAME=$DIRECTORY
fi
FILENAME=${FILENAME} | \
tr '/' _ | \
iconv -t ascii//TRANSLIT | \
sed -r s/[^a-zA-Z0-9]+/_/g | \
sed -r s/^_+\|-+$//g
FILENAME=${FILENAME} \
| tr '/' _ \
| iconv -t ascii//TRANSLIT \
| sed -r s/[^a-zA-Z0-9]+/_/g \
| sed -r s/^_+\|-+$//g
TIMESTAMP=$(date "+%Y%m%d_%H%M%S")
FILENAME_TIMESTAMP="${FILENAME}_${TIMESTAMP}"