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
- Host: GitHub
- URL: https://github.com/sbimochan/whichenv
- Owner: sbimochan
- License: mit
- Created: 2022-06-20T07:17:13.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-20T07:25:56.000Z (about 4 years ago)
- Last Synced: 2025-02-26T08:18:36.740Z (over 1 year ago)
- Topics: bash, shell
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```