|
| |
| |
| Welcome Chello Amsterdam !!! |
| |
| SCRIPT DESCRIPTION |
| |
This script is useful is you work in a complex environment with lots of application each using its own path, you will be able to manage your PATH variable and save changes without editing manually your configuration files (.profile or .bash_profile)
Description of all functions:
| lspath |
Lists all paths one by line. |
| pathfix |
Removes duplicate entries in the PATH variable and reorders all entries. |
| savepath |
Saves path to the current configuration file. |
| autosavepath |
Manages automatic saving of the path. |
| readpath |
Reads the path from current configuration file. |
| rmpath |
Removes a path entry.
|
| addpath |
Adds a directory to the path. |
|
| |
| INSTALLATION |
| |
For istalling the script just copy it in your home directory then add
the following
piece of code to your .profile or .bash_profile :
# If exists the file load it...
#
[ -f $HOME/.pathmgr ] &&
{
. $HOME/.pathmgr
}
#
#
# Now load configuration file (and PATH) or
# save current path to configuration file.
#
#
export PATHFILE=$HOME/.path
[ -f $HOME/.path ] &&
{
loadpath
} ||
{
pathfix
lspath > $PATHFILE
}
|
|
Click here to download
|
| |
| Last modified:
Friday, January 21 2005 |
| |
|
|