Shellingham: Tool to Detect Surrounding Shell

1.5.4 · active · verified Sat Mar 28

Shellingham is a Python library designed to detect the current shell environment, aiding in tasks like shell completion. The latest version is 1.5.4, released on March 28, 2026. It is actively maintained with a release cadence of approximately one release every few months.

Warnings

Install

Imports

Quickstart

Quickstart example to detect and print the current shell environment.

from shellingham import detect_shell

shell, path = detect_shell()
print(f"Detected shell: {shell}")

view raw JSON →