Skip to content

Instantly share code, notes, and snippets.

@ceason
ceason / k-port-forward.sh
Last active July 6, 2018 15:40
Interactively select & forward a port locally, using FZF
#!/usr/bin/env bash
[ "$DEBUG" = "1" ] && set -x
set -eo pipefail
err_report() { echo "errexit on line $(caller)" >&2; }
trap err_report ERR
case "$1" in
h|-h|--help|help)
echo "Interactively select & forward a port locally, using FZF
Usage:

Keybase proof

I hereby claim:

  • I am ceason on github.
  • I am ceason (https://keybase.io/ceason) on keybase.
  • I have a public key ASC_F2eZO7FJEQmpIHTpdNrenBgPLvvAqAi_S9JAeLXb5wo

To claim this, I am signing this object: