A collection of bash scripts to make bash life easier.
I wanted to create a resource for myself and everyone else to find useful one-liners or see examples of bash scripts in the wild.
- Many useful one-liners and bash utilities.
- Easily add your own scripts by adding a
<script-name>.sh
file to.bash_scripts/custom
- Sophisticated history control.
- Custom command prompt.
- Unique command counter.
- Colors!
- Download this repo.
git clone https://github.com/rrrossettiii/bash_scripts
- Copy
.bash_scripts
to your home directory.
cp bash_scripts/.bash_scripts ~
- Copy
.bash_env
to your home directory.
cp bash_scripts/.bash_env ~
- Copy
.bashrc
to your home directory.
cp bash_scripts/.bashrc ~
or paste this at the end of your current .bashrc
source ~/.bash_env ### loads .bash_env variables
source ~/.bash_scripts/init.sh ### loads all .bash_scripts
- Reload your
.bashrc
source ~/.bashrc
- Profit ???
- Make a "no comments" branch.
- Support for other linux distros.
- Support for OSX.