export whichenv = "dev"
Similarly add these variables in other environments like qa, staging, prod, etc.
source ~/.bashrc
sudo curl https://raw.githubusercontent.com/sbimochan/whichenv/master/whichenv -o /usr/local/bin/whichenv && sudo chmod +x /usr/local/bin/whichenv
whichenv