diff --git a/README.md b/README.md index 144d157..2e93d7e 100644 --- a/README.md +++ b/README.md @@ -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 /bashrc` + +```bash +source $full_path_to_repository/bashrc +``` After that each bash login is ready to offer full functionality. diff --git a/scripts/install-packages.sh b/scripts/install-packages.sh new file mode 100755 index 0000000..0f0cf2d --- /dev/null +++ b/scripts/install-packages.sh @@ -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 diff --git a/scripts/sudo-user.sh b/scripts/sudo-user.sh index e8d5ea5..b8ee8c9 100755 --- a/scripts/sudo-user.sh +++ b/scripts/sudo-user.sh @@ -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 diff --git a/src/battery/.editorconfig b/src/battery/.editorconfig index 17b61f1..46eec62 100644 --- a/src/battery/.editorconfig +++ b/src/battery/.editorconfig @@ -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