1.0.1 • Published 8 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.json
is an array of paths of your environment paths. You can useal addp $PATH
to add a path to config or modify paths manually topath.json
. eg.al addp /usr/bin
adds/usr/bin
to path config. - Generated config file
alias.json
is a json with key as the alias as value what you want it to alias to. It initially contains all you aliases in.bash_profile
and.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 aliasll
forls -la
to alias config. - Run
al load
to load your changes. al writes to.bash_profile
(for future terminals) and generates a.profile
in 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.