Bash ustilities.
git clone https://github.com/civan/scripts.git ~/scripts
make sure you have the ~/scripts folder in your $PATH.
If not, add this in your shell profile file. eg, (~/.bashrc
, ~/.zshrc
):
export PATH=$PATH:$HOME/bin:$HOME/scripts
Grant the execute permision to the scripts folder:
chmod +x ~/scripts/*
Lets you to change the current version of grow.
Usage:
grow-use.sh 0.2.1
now you can use 0.2.1 as your main version:
grow --version
Installs multiple versions of grow.
Installing 0.2.0 version:
grow-install.sh 0.2.0
Then refresh your shell.
Usage:
[email protected] --version
You can create symlinks for every scripts you want to use:
ln -s ~/scripts/grow-use.sh ~/bin/grow-use
and
ln -s ~/scripts/grow-install.sh ~/bin/grow-install
then you can use:
grow-use 0.2.0
and
grow-install 0.2.0