1.0.1 • Published 9 years ago
al-cli v1.0.1
al
al is a CLI helper that makes aliases and path easy to manage.
Installing
npm install -g al-cli
Using al
- Go to folder you want to keep your configs and run
al init. al creates configuration files to manage paths and aliases. - Generated config file
path.jsonis an array of paths of your environment paths. You can useal addp $PATHto add a path to config or modify paths manually topath.json. eg.al addp /usr/binadds/usr/binto path config. - Generated config file
alias.jsonis a json with key as the alias as value what you want it to alias to. It initially contains all you aliases in.bash_profileand.bashrc. You can useal add $ALIAS '$TO'to add an alias or you can manually edit aliases by editingalias.json. eg.al add ll 'ls -la'adds aliasllforls -lato alias config. - Run
al loadto load your changes. al writes to.bash_profile(for future terminals) and generates a.profilein the current directory which can be run withsource .profile. We have to do this an node running in a chld process of the terminal cannot modify its parent process' environment.