Skip to content

Instantly share code, notes, and snippets.

@dzikoysk
Created April 25, 2026 15:20
Show Gist options
  • Select an option

  • Save dzikoysk/d8d97ad0220b5a151fe65b4f84c4b437 to your computer and use it in GitHub Desktop.

Select an option

Save dzikoysk/d8d97ad0220b5a151fe65b4f84c4b437 to your computer and use it in GitHub Desktop.
Warp Terminal on Linux (~/.local/bin/warp)
#!/usr/bin/env bash
dir="$(realpath "${1:-$PWD}")"
[[ -d "$dir" ]] || { echo "warp: not a directory: $dir" >&2; exit 1; }
DBUS_SESSION_BUS_ADDRESS=unix:path=/dev/null \
WARP_INITIAL_WORKING_DIR="$dir" \
setsid -f warp-terminal >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment