Skip to content

Instantly share code, notes, and snippets.

@xshyamx
Created July 17, 2014 11:19
Show Gist options
  • Save xshyamx/6410669e28c28b073a42 to your computer and use it in GitHub Desktop.
Save xshyamx/6410669e28c28b073a42 to your computer and use it in GitHub Desktop.
Pipe output of a shell command into a new emacs buffer from Git Bash
#!/bin/sh
fn="$RANDOM"
while read -r line
do
echo $line >> /tmp/$fn
done
/e/software/emacs-24.3/bin/emacsclientw -n /tmp/$fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment