- Tries to be as cross platform as possible.
- Configuration for the most common needs.
- Will set bash options to make it better to use.
- Tries to turn on bash features which isnt enable as default (but is very usefull)
- Colorizing the output where possible.
- Usefull "smart" bash prompt
- Aliases which tries to save you time and give you more info as default.
- Creates some usefull hotkeys
- Different parts
- Lots more, take a look inside the files in parts/
- sudo su: When sudoing to root (sudo su), we will get some problems using the prompt. Therefor, a plain prompt is set when using sudo. You can use an alias called 'ss' to sudo yourself to root without this problem. 'ss' will run 'sudo bash -l' which works as expected using the prompt.
If you want easy updates, and maybe want to contribute at some point. Use this method.
git clone git://github.com/xeor/ninjab.git ninjab
: Clone the repository to wherever you wantcp ninjab/config ~/.ninjab.conf && nano ~/.ninjab.conf
: Create your own local config file and edit it.echo '. /home/username/ninjab/loader' >> ~/.profile
: Make sure the loader is started with a new shell- Try to start a new shell
wget https://github.com/downloads/xeor/ninjab/ninjab-latest.noarch.rpm
rpm -ivh ninjab-latest.noarch.rpm
cp /usr/share/ninjab/config ~/.ninjab.conf && nano ~/.ninjab.conf
: Create your own local config file and edit it.echo '. /usr/share/ninjab/loader' >> ~/.profile
: Make sure the loader is started with a new shell- Try to start a new shell
ninjab looks for configuration in 4 different places, in this order.
config
in its own directory first. Don't edit this file, may be options added in future versions./etc/ninjab.conf
for global configuration.config.local
in its own directory. If you want any local changes use this. It wont be touched by updates.~/.ninjab.conf
in your home directory.