This repository is designed to add some dazzle and utility to a fresh stock bash environment with minimal permissions required.
-
setup.sh
: A script that moves things where they need to, initializes an ssh key, and sets the git username/email -
main
: File sourced by~/.bashrc
that handles most of the shell configuration, such as:- Fully colorized command prompt with extra info such as time, user, host, and working directory
- Colorize errors, ls, etc.
- bash_completion
- force git and ssh password entry in command line
-
scripts/aliases
: Contains several convenience alias such as:pls
does asudo
with the user's PATH in tactenv
is sorted by default, for readabilitydocker-cleanup
removes any dangling Docker images- etc.
-
scripts/functions
: Contains some useful functions such as:cs
does acd
thenls
git_file_gl
downloads a single file from a GitLab repository
-
scripts/options
: File with commentable options like extended regex matching and history file appending -
scripts/secrets-template
: A template for file exporting any API keys or secrets as environment variables -
ssh-config: An example ssh config file, gets placed by
secret.sh
-
vimrc
: To make vim behave the way I personally like it to :) gets placed bysecret.sh
-
bash-tips: Contains 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
-
Rename
secrets-template
tosecrets
and enter your private things to keep them safesecrets
is ignored, 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