Reg is simple tool for bash alias management
to install reg manually you can pull or download zip file and run installer.sh by this command
bash installer.sh
reg is a small command-line bash program alias management. it requires the bash interpreter (almost unix os have it already). you can use reg like this:
reg add "pull" "git pull origin master" "vagrant provision" "gulp build"
for add alias you can use this command:
reg add [alias name] [command 1] [command 2] [command n]
for remove alias:
reg remove [alias name]
for show alias
reg list [alias name] [-num]
for call alias:
reg [alias name]
or
reg [alias name] [-s / -t] [command 1] [command 2] [command n]
you can use alias standalone.
for add alias as standalone (not recommended)
reg alias [alias name] [alias value]
for remove alias as standalone (not recommended)
reg alias -d [alias name]
for add env variable
reg env [env name] [env value]
for remove env variable
reg env -d [env name]
for reload bashrc
reg reload
reg has group alias, it means you can put many command as single alias name.
for example you can define this alias group
reg add "pull" "git pull origin master" "vagrant provision" "gulp build"
and you can use like this:
reg "pull"
or you can select specific command from alias group for example:
reg "pull" -s "2,3"
it's mean you only run first command in this example it is
"git pull origin master"
you skiped command 2 and 3
this documentation will complete in future