Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • How would you use an alias to create a file, and then open it? I don't think that would be the most robust (if even possible) way of handling this. If so, an example would definitely be awesome for people to see. Commented Apr 4, 2013 at 5:48
  • alias touch_open='touch myfile.txt; open myfile.txt' would work to create the Alias. Alternatively, could write a small function that would take in a parameter, ie. function touch_open { touch "$@"; open "$@"; } and then run that as touch_open myfile.txt Commented Apr 4, 2013 at 14:39