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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hold_your_shell-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hold_your_shell-0.1.2.tar.gz
Algorithm Hash digest
SHA256 730e8b8b67b65781e2d82ebeec6b702f5941c7f3c225bfad5de781767c51a297
MD5 e97b215dc47237aef238375c46a8670b
BLAKE2b-256 22dcee92903aed8092168ed91ec717e7fe168b5bf910e237922a5aa215c6fa98

See more details on using hashes here.

Provenance

The following attestation bundles were made for hold_your_shell-0.1.2.tar.gz:

Publisher: publish.yml on EnigmaCurry/hold-your-shell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for hold_your_shell-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc16f47412d509ef76d13e71cc5acfb0ea0a7a152c6e06ec5f665295580fa3c6
MD5 def40e9d3fb38167e6486047312dfb4d
BLAKE2b-256 6137cd471b30578cf941fc4ea1f2ad5a4d59d96c963195b892a381cd6ad5ade0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hold_your_shell-0.1.2-py3-none-any.whl:

Publisher: publish.yml on EnigmaCurry/hold-your-shell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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