Skip to content
Create a gist now

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
COMMAND_NAME=`basename $0`
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PATH="$(echo $PATH | sed s#`echo $DIR | sed 's#\\/#\\\\\\/#g'`:##g)"
if command -v urxvt > /dev/null 2>&1; then
urxvt -name $COMMAND_NAME -e $COMMAND "$@" & disown -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.