I want to open the output of terminal commands in sublime2.
e.g. when I do
$ list , it lists all files/folders in terminal. I want that when I run this command a temporary text file should be created and output is opened in sublime2 editor. I have no intention to save it. I just want to open output in sublime2.
I've seen that you can open in
Mac by piping out the output.
$ls | mate ( I am not sure about the syntax )