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.1.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.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hold_your_shell-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 aec4fd9beabb19f9682b2b82b50e27af922bb77d9396f405c232bedc02b227d1
MD5 a4a5acf4bd9f0f6a54af4c29efa25a6f
BLAKE2b-256 82d5f4a41923ac7510cffe9fd4a7d753e529d516a1a6c17785629c076b54dcf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hold_your_shell-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 182aaad06af8c3e52f8286d3e121b35c7f122febeeba8136209741f33657081b
MD5 140d5ee0116857218d2dfca9bc13bed7
BLAKE2b-256 141fcf829650f411987c6748fb5b662c85860ce107e51f9da6a04b8c7ee324ea

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