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
Written by Dmitry Pashkevich
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#