Created
June 13, 2013 19:16
-
-
Save georgebonnr/5776517 to your computer and use it in GitHub Desktop.
Lazy Touch. A way to create and open a file in its default application in one bash command. For instance, $ ltouch example.rb
Add the text below to your user .bash_profile.
This file contains 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
ltouch() | |
{ | |
touch $1 | |
open $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment