Skip to content

Instantly share code, notes, and snippets.

@blueyed
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blueyed/f5c3a5f96f4940d393a2 to your computer and use it in GitHub Desktop.
Save blueyed/f5c3a5f96f4940d393a2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env zsh
# Wrap call to python with a terminal (urxvt), to make server processes easier
# to debug (e.g. YouComleteMe).
# E.g.: python-in-terminal -c "import time; time.sleep(5)"
: ${PYTHON:=python2}
cmd=($PYTHON ${@})
exec urxvt -e ${cmd}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment