1.0.1 • Published 8 years ago

al-cli v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

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 use al addp $PATH to add a path to config or modify paths manually to path.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 use al add $ALIAS '$TO' to add an alias or you can manually edit aliases by editing alias.json. eg. al add ll 'ls -la' adds alias ll for ls -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 with source .profile. We have to do this an node running in a chld process of the terminal cannot modify its parent process' environment.
1.0.1

8 years ago

1.0.0

8 years ago