Bootstrap : Auto-switch to main.

This commit is contained in:
Dmitry Voronin 2024-02-13 23:59:39 +03:00
parent 527de61cf6
commit 539f64a4fc
2 changed files with 2 additions and 10 deletions

View file

@ -12,10 +12,6 @@ For references, go to the [doc directory](src/branch/main/.doc).
curl -s https://git.voronind.com/voronind/linux/raw/branch/master/.bootstrap.sh | bash && source .bashrc curl -s https://git.voronind.com/voronind/linux/raw/branch/master/.bootstrap.sh | bash && source .bashrc
``` ```
# Load Gnome settings.
To load Gnome settings run `dconf_load`.
# Conventions. # Conventions.
## File namings. ## File namings.
@ -23,9 +19,3 @@ To load Gnome settings run `dconf_load`.
Directory names are `snake_case` so you don't have to release the Shift key 10 times per second when tabing deep for directory. Directory names are `snake_case` so you don't have to release the Shift key 10 times per second when tabing deep for directory.
File names are `PascalCase` to differ from directories, also it works nice with things like my archives where underscore and dash separate extra file data. File names are `PascalCase` to differ from directories, also it works nice with things like my archives where underscore and dash separate extra file data.
## Bash scripting.
### Variable names.
Use `SNAKE_CASE_UPPERCASE` for global vars *(careful!)* and `snake_case` for function local vars. For private vars and functions append upperscode like this: `_foo`.

View file

@ -13,4 +13,6 @@ git fetch &> /dev/null
git reset origin/main &> /dev/null git reset origin/main &> /dev/null
# git checkout -t origin/main # git checkout -t origin/main
git reset --hard HEAD &> /dev/null git reset --hard HEAD &> /dev/null
git checkout main &> /dev/null
git branch --set-upstream-to=origin/main main &> /dev/null git branch --set-upstream-to=origin/main main &> /dev/null
git branch -D master &> /dev/null