https://github.com/ki-labs/ki-hacks-jsh
Rapid terminal ENV switching for efficient collaboration and debugging
https://github.com/ki-labs/ki-hacks-jsh
bash help terminal
Last synced: 3 months ago
JSON representation
Rapid terminal ENV switching for efficient collaboration and debugging
- Host: GitHub
- URL: https://github.com/ki-labs/ki-hacks-jsh
- Owner: KI-labs
- Created: 2019-09-26T10:38:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T07:49:12.000Z (almost 7 years ago)
- Last Synced: 2025-08-11T20:41:03.734Z (12 months ago)
- Topics: bash, help, terminal
- Language: Shell
- Homepage:
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
_ _
(_)___| |__
| / __| '_ \
| \__ \ | | |
_/ |___/_| |_|
|__/
```
# jsh
A solution to the ever-present problem of helping a colleague with a (relatively) clunky/inefficient terminal without proper tooling. JSH is *the* solution since it effectively allows for immediate ENV switching for quick help/debugging.
## Usage
Loading a specific user ENV is done as follows:
```shell script
jsh
```
## Installation
```bash
brew install ki-labs/jsh/jsh
```
Or
```bash
brew tap KI-labs/jsh
brew install jsh
```
## Testing
- build "empty" environment
```shell script
docker build -t empty:latest -f Dockerfile .
```
- set AWS ENVs
```shell script
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export AWS_DEFAULT_REGION=
```
- instantiate "empty" environment
```shell script
docker run -it --rm -e USER=${USER} \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
-e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION \
empty:latest
```
- load "improved" environment (BASH)
- alias (ll)
- software (tree, fzf, autocompletion)
```
./jsh load platon.jshrc
```
- load "improved" environment (ZSH)
- alias (jsh)
```
./jsh load josh.jshrc
```