mk_0nw
Last Updated: February 25, 2016
·
623
· dpashkevich

A little bash function for creating a new project

Here's a pretty self-explanatory little time saver function:

newprj() {
    local TARGET="$HOME/projects/${*}"
    mkdir -p "$TARGET"
    cd "$TARGET"
}

Usage:

newprj notepad        # creates `~/projects/notepad` and cd's into it
newprj personal/blog  # it's OK to specify subdirectories too
Filed Under