This repository is designed to add some dazzle and utility to a fresh stock bash environment with minimal permissions required.
-
setup.sh
: Initializes shell environment:- Adds
source /path/to/glass-bash/main.sh
line to~/.bashrc
- Checks for SSH key, creates if missing
- Sets Git user name and email (user input) if not already set
- Adds
-
main.sh
: File sourced by~/.bashrc
that handles most of the shell configuration and sourcing of other files -
scripts/
: Contains all custom content, including: -
bash-tips: Just some useful chunks of bash code
-
Clone the repo:
$ git clone http://github.com/glass-ships/glass-bash.git
-
Initialize new environment:
$ cd glass-bash && bash setup.sh
-
(Optional) Store any secrets as environment variables. Create a file called
secrets.json
in the root of the repo.- This file is ignored by git, so your secrets are safe if you contribute to this repository.
The format should be:
{ "SECRET_ONE": "SECRET_VALUE", "SECRET_TWO": "OTHER_SECRET_VALUE" ... }
- This file is ignored by git, so your secrets are safe if you contribute to this repository.
-
Enjoy!
This repo could probably use some regular TLC. If you're interested in helping out, just create an issue, or fork the repo and merge request back in!
~ Glass