Skip to content

Instantly share code, notes, and snippets.

@georgebonnr
Created June 13, 2013 19:16
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 georgebonnr/5776517 to your computer and use it in GitHub Desktop.
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.
ltouch()
{
touch $1
open $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment