Small tunings
This commit is contained in:
@@ -5,7 +5,10 @@ Repository of config files, scripts and other staff to enable quick and easy con
|
|||||||
## Quick start
|
## Quick start
|
||||||
|
|
||||||
Add to $HOME/.bashrc file:
|
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.
|
After that each bash login is ready to offer full functionality.
|
||||||
|
|
||||||
|
|||||||
5
scripts/install-packages.sh
Executable file
5
scripts/install-packages.sh
Executable 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
|
||||||
@@ -4,7 +4,7 @@ set -E -o errexit -o nounset -o pipefail
|
|||||||
|
|
||||||
USER_FILE="/etc/sudoers.d/$USER"
|
USER_FILE="/etc/sudoers.d/$USER"
|
||||||
|
|
||||||
if [ -f $USER_FILE ]; then
|
if [[ -f $USER_FILE ]]; then
|
||||||
echo "Sudo file $USER_FILE already exists!"
|
echo "Sudo file $USER_FILE already exists!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
# defaults
|
|
||||||
[*]
|
[*]
|
||||||
charset=utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
end_of_line=lf
|
end_of_line = lf
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
||||||
@@ -13,20 +12,14 @@ indent_style = tab
|
|||||||
[*.xml]
|
[*.xml]
|
||||||
continuation_indent_size = 8
|
continuation_indent_size = 8
|
||||||
|
|
||||||
# YAML
|
|
||||||
# http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668
|
|
||||||
[*.{yaml,yml}]
|
[*.{yaml,yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
# Shell
|
|
||||||
# https://google.github.io/styleguide/shell.xml#Indentation
|
|
||||||
[*.{bash,sh,zsh}]
|
[*.{bash,sh,zsh}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
# HTML
|
|
||||||
# https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
|
|
||||||
[*.{htm,html}]
|
[*.{htm,html}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[*.json]
|
[*.json]
|
||||||
indent_size=2
|
indent_size = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user