Created
September 13, 2013 22:19
-
-
Save aronj/6556830 to your computer and use it in GitHub Desktop.
This python script lets you start urxvt with the command you have in clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from os import system | |
from subprocess import Popen, PIPE | |
p1 = Popen(["xclip", "-o"], stdout=PIPE) | |
command = p1.communicate()[0] | |
system("urxvt -e sh -c \"" + command + " && zsh\"") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment