Skip to content

Rapid terminal ENV switching for efficient collaboration and debugging

Notifications You must be signed in to change notification settings

KI-labs/ki-hacks-jsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

    _     _
   (_)___| |__
   | / __| '_ \
   | \__ \ | | |
  _/ |___/_| |_|
 |__/

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:

jsh

Installation

brew install ki-labs/jsh/jsh

Or

brew tap KI-labs/jsh
brew install jsh

Testing

  • build "empty" environment
 docker build -t empty:latest -f Dockerfile .
  • set AWS ENVs
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export AWS_DEFAULT_REGION=
  • instantiate "empty" environment
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

About

Rapid terminal ENV switching for efficient collaboration and debugging

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published