Merge: introduce nit_env.sh to setup the shell environement
authorJean Privat <jean@pryen.org>
Wed, 28 Oct 2015 17:02:28 +0000 (13:02 -0400)
committerJean Privat <jean@pryen.org>
Wed, 28 Oct 2015 17:02:28 +0000 (13:02 -0400)
commit96e6d452eb490613c6fe0862a2c35913c1025293
tree7106bf531ff66b0e4551826a81013cdb2bc13f2d
parent60c2a0866455dfe7fd9015d5ec1c5acaf4cedff6
parentf365b36e05a36d437c96bb9d9b3ea2353dfd2cbb
Merge: introduce nit_env.sh to setup the shell environement

The script `nit_env.sh` tries to auto-magically configure PATH, MANPATH and bash completion for users. The point is to be as portable and simple a possible for the final used has he just has to write

~~~
$ source misc/nit_env.sh
~~~

and get a working setup.

Moreover, if `install` in given as argument, then the script register itself to the user `$HOME/.profile`.

~~~
$ source misc/nit_env.sh install
~~~

One advantage is that the script invocation is registered in `.profile`, thus future evolutions of the script will be automatically used in future sessions of the users.

Pull-Request: #1784
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
README.md