Created — forked from timcowlishaw/gist:2767427

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:2767431
1 2 3 4 5 6 7 8 9 10
#!/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)"
COMMAND="$(which $COMMAND_NAME)"
if command -v urxvt > /dev/null 2>&1; then
urxvt -name $COMMAND_NAME -e $COMMAND "$@" & disown -h
else
$COMMAND "$@"
fi
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.