Small tunings

This commit is contained in:
lachtan
2024-03-23 07:59:16 +01:00
parent 2256cd3107
commit 1bbb372856
4 changed files with 13 additions and 12 deletions

View File

@@ -5,7 +5,10 @@ Repository of config files, scripts and other staff to enable quick and easy con
## Quick start
Add to $HOME/.bashrc file:
`source <full_path_to_repository>/bashrc`
```bash
source $full_path_to_repository/bashrc
```
After that each bash login is ready to offer full functionality.

5
scripts/install-packages.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
set -E -o errexit -o nounset -o pipefail
cat $LWS/conf/packages.txt | grep -v '^\s*#' | sudo xargs apt-get install -y

View File

@@ -4,7 +4,7 @@ set -E -o errexit -o nounset -o pipefail
USER_FILE="/etc/sudoers.d/$USER"
if [ -f $USER_FILE ]; then
if [[ -f $USER_FILE ]]; then
echo "Sudo file $USER_FILE already exists!"
exit 1
fi

View File

@@ -1,9 +1,8 @@
# defaults
[*]
charset=utf-8
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line=lf
end_of_line = lf
indent_size = 4
indent_style = space
@@ -13,20 +12,14 @@ indent_style = tab
[*.xml]
continuation_indent_size = 8
# YAML
# http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668
[*.{yaml,yml}]
indent_size = 2
# Shell
# https://google.github.io/styleguide/shell.xml#Indentation
[*.{bash,sh,zsh}]
indent_size = 2
# HTML
# https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
[*.{htm,html}]
indent_size = 2
[*.json]
indent_size=2
indent_size = 2