mk_0nw
Last Updated: February 25, 2016
·
605
· dpashkevich
D42a7264714dee5006b9c99d2567a320

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
Say Thanks
Respond
Filed Under