Skip to main content

Preview and confirm scripts before executing them.

Project description

hold-your-shell

hold-your-shell is a command line program (TUI) that previews shell scripts (or any shebang script) in a pager, and asks the user to confirm execution.

This single file program is written for Python 3.x and only uses the stdlib.

Install

Pip install:

pip install hold-your-shell

Manual install:

HY_BIN=~/.local/bin/hold-your-shell
mkdir -p $(dirname ${HY_BIN})

wget -O ${HY_BIN} https://raw.githubusercontent.com/EnigmaCurry/hold-your-shell/refs/heads/master/hold_your_shell/hold_your_shell.py

chmod +x ${HY_BIN}

Examples

echo "whoami" | hold-your-shell
cat <<'EOF' | hold-your-shell
echo "What is your name?"
read NAME
echo "Hello $NAME"
EOF
curl https://get.docker.com/ | hold-your-shell

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

hold_your_shell-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hold_your_shell-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file hold_your_shell-0.1.0.tar.gz.

File metadata

  • Download URL: hold_your_shell-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.27

File hashes

Hashes for hold_your_shell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10a014dd6b01e3af14d3fb7837c32da11b72755fe44867c0dc7c47d36e6da464
MD5 87b627369f3059263f6e2aa54b8e7efe
BLAKE2b-256 efa2ccb8b2a2137f12942a1dc99ccc99483999b035a5b2ed51b3981507932e47

See more details on using hashes here.

File details

Details for the file hold_your_shell-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hold_your_shell-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95c63eac668dd2d70413533900716e12241d7cad141dbffea24c159b7f064d76
MD5 efcd7497f209c9c03a8800b9f9105387
BLAKE2b-256 28aac9a196f7f945c8c9949874a0561308c15b15d2e388347108e04b947597b0

See more details on using hashes here.

Supported by

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