Skip to content

Instantly share code, notes, and snippets.

@zachpendleton
Created June 29, 2012 15:38
Show Gist options
  • Select an option

  • Save zachpendleton/3018672 to your computer and use it in GitHub Desktop.

Select an option

Save zachpendleton/3018672 to your computer and use it in GitHub Desktop.
Echo the current Pianobar song for tmux.
#!/bin/zsh
if [ -z `ps aux | grep 'pianobar$'` ]; then
echo ''
else
cat /Users/zpendleton/.config/pianobar/current-song.txt
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment