Last Updated: February 25, 2016
·
1.629K
· james2doyle

zsh new file && open file

# create a new file in the current directory and then open it
new () {
    sudo touch $1 && open $1
}