Skip to content

Instantly share code, notes, and snippets.

@sarnobat
Last active September 27, 2017 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarnobat/c663e5b4f9f8bf7e38f69068f53e5831 to your computer and use it in GitHub Desktop.
Save sarnobat/c663e5b4f9f8bf7e38f69068f53e5831 to your computer and use it in GitHub Desktop.
ZSH key binding that spans multiple lines
bindkey -s "^[T" 'sh <<EOF ^[^M'\
'^[^M'\
' # Run the main test.^[^M'\
' cd ~/work/src/tests/ && JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home mvn --quiet test --settings ~/sarnobat.git/mac/.m2/settings.xml -Dsurefire.useFile=false -Dsurefire.printSummary=false -Dtier=devint -Dtest="*#*" | grcat ~/conf.tail ; popd; osascript -e '\''tell app \"System Events\" to display dialog \"Tests finished\"'\'' ^[^M'\
'^[^M'\
'EOF'\
'^[[A^[[A^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment