Created
July 17, 2014 11:19
-
-
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
This file contains hidden or 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
#!/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