zsh new file && open file
# create a new file in the current directory and then open it
new () {
sudo touch $1 && open $1
}
Written by James Doyle
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#