Skip to content

Instantly share code, notes, and snippets.

@Michcioperz
Created September 21, 2014 08:22
Show Gist options
  • Select an option

  • Save Michcioperz/07f5220e7fcd2d4c22d3 to your computer and use it in GitHub Desktop.

Select an option

Save Michcioperz/07f5220e7fcd2d4c22d3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import subprocess, shlex
try:
while True:
subprocess.call(shlex.split('mpc %s'%input('$ ')))
except EOFError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment