Skip to main content

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
  • Resolves symlinks first

Icon by Flaticon

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.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

swytchit-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file swytchit-0.1.2.tar.gz.

File metadata

  • Download URL: swytchit-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/5.15.154+

File hashes

Hashes for swytchit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ebf3325682f22765035b483dcd7602ed526b75cf0e2295e16d1409a746391773
MD5 82b1e15b42e8a83dadd71a29bba8a949
BLAKE2b-256 e875b3257ad0cc7fa9f4d18008134814ff30245c6794509ebe8de0cb7c78e93b

See more details on using hashes here.

File details

Details for the file swytchit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: swytchit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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

Hashes for swytchit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e509583f56e0a40de0eef5c5921028e473b17b56e2b930a2c3bd3c67e9bb3cef
MD5 9cb36c6d3ce121eba13704edad6df819
BLAKE2b-256 d4b1fdb6182333a450f5a8de909ae44d5c5dedf77043dd190e35043e9e108952

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page