"Forge in" to a directory
function fin()
{
mkdir -p $1 && cd $1
}
... in your bashrc.
Now, instead of mkdir -p foo/bar/baz && cd foo/bar/baz, you can fin foo/bar/baz and end up in your newly created directory.
Written by Ryan Rix
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Related Tags
#linux
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#