Context switching made easy for shell geeks
Project description
Swytchit
Context switching made easy for shell geeks
Usage
sw your/project/directory
- Performs a
cd
operation to the project - Starts a subshell
- Within the subshell, runs
source
on.swytchitrc
files in the project directory and any ancestor directories
Why?
- Easily switch virtual environments for scripting languages (Python, Ruby, etc)
- Easily populate project-specific environment variables and aliases
- Use with the
op
CLI from 1Password to keep project-specific secrets in memory
Installation (MacOS)
brew install python3.11
python3.11 -m pip install pipx
pipx install swytchit
Rules
- Only works in TTY shell (no piping)
- Only works for a descendent of user's home directory
- Resovles symlinks first
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swytchit-0.1.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file swytchit-0.1.1.tar.gz
.
File metadata
- Download URL: swytchit-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/5.15.154+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f33bbab39d6ab12903a306387e93ccbfdfabee70dc3e766b19bae655b50427e7 |
|
MD5 | 7fe66a27d57ef66c860349ca1855df9f |
|
BLAKE2b-256 | b7b6c20833eee7f6079aac408a6d4f9c6c81ed768d860953ca07c2858a14b26e |
File details
Details for the file swytchit-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: swytchit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/5.15.154+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2203fb392e678873dffdcf9467a8bf196d4e6350d9f8b46843412616481da29d |
|
MD5 | df711cefa336123a11bfb89752c503cd |
|
BLAKE2b-256 | 56c4efca24919827884e612fb1eadc7e0473edb4500c58bef9c81f6f456c8773 |