An open API service indexing awesome lists of open source software.

https://github.com/sbimochan/whichenv

Find easily which env you are in while you are doing multiple SSH session. Similar to hostname
https://github.com/sbimochan/whichenv

bash shell

Last synced: about 2 months ago
JSON representation

Find easily which env you are in while you are doing multiple SSH session. Similar to hostname

Awesome Lists containing this project

README

          

# Which Env ?

### Edit `~/.bashrc` file to permanently store variable or according to your SHELL.

```bash
export whichenv = "dev"
```

Similarly add these variables in other environments like qa, staging, prod, etc.

### Reload

```bash
source ~/.bashrc
```

### Install whichenv

```bash
sudo curl https://raw.githubusercontent.com/sbimochan/whichenv/master/whichenv -o /usr/local/bin/whichenv && sudo chmod +x /usr/local/bin/whichenv
```

### Execute it

```bash
whichenv
```