Bash

Share Bash code online.

Share shell scripts, deployment commands, or system one-liners with browser-side encryption and optional password protection.

textdrop.sh/xk4mR2
1#!/usr/bin/env bash2set -euo pipefail34DEPLOY_ENV=${1:-staging}5IMAGE_TAG=$(git rev-parse --short HEAD)6REGISTRY="registry.example.com"78echo "→ Building $IMAGE_TAG for $DEPLOY_ENV"910docker build \11  --build-arg BUILD_ENV="$DEPLOY_ENV" \12  -t "$REGISTRY/myapp:$IMAGE_TAG" .1314docker push "$REGISTRY/myapp:$IMAGE_TAG"1516kubectl set image deployment/myapp \17  app="$REGISTRY/myapp:$IMAGE_TAG" \18  --namespace="$DEPLOY_ENV"1920kubectl rollout status deployment/myapp \21  --namespace="$DEPLOY_ENV" --timeout=120s2223echo "✓ Deployed $IMAGE_TAG to $DEPLOY_ENV"
Every paste includes

Bash syntax highlighting

Paste Bash code and get a shareable link with full syntax highlighting, server-side rendered with no JavaScript overhead.

Burn after read

Deleted on first open. Can't be viewed twice.

Password protection

Add a password for end-to-end encryption with no raw key stored.

Configurable expiry

Set pastes to expire after 1 hour, 1 day, 7 days, or up to 30 days. Gone when you say so.

No account needed

No sign-up, no email, no ads. Paste and share in seconds.

How it works
Plain Text
Markdown
Code
DB_HOST=db-01.prod.internal
DB_USER=api_svc
DB_PASS=xK9$mP2!qR7nLw2
REDIS_URL=redis://:abc@cache:6379
delete after setup — expires 1hr
7 days
Share
textdrop.sh/
7 days · plain text
Use cases
  • 01Share deployment scripts with your team
  • 02Send system administration one-liners
  • 03Share CI/CD pipeline snippets
  • 04Distribute dotfile configurations
  • 05Send debugging commands to a colleague
FAQ
Is it safe to share scripts with credentials in them?+

For credentials, use password protection and share the password separately. Non-password pastes are encrypted in your browser, but the raw data key is stored server-side for simple sharing and raw access. Burn-after-read can delete the paste after the first view.

Does textdrop.sh support zsh and fish syntax?+

Select Bash as the language: the grammar covers most POSIX shell syntax and will highlight zsh and fish scripts reasonably well.

Can the recipient download the script directly?+

Yes. Non-password, non-burn pastes have a /<id>/raw endpoint that returns plain UTF-8 text, which can be piped directly into bash.

Other languages
Drop your code