Permalink
Browse files

add 'md' function to make directory and cd into it

  • Loading branch information...
jeffreyiacono committed Apr 9, 2012
1 parent 077be24 commit 14c6c9c847a6de17f283719df7876ded539cac0e
Showing with 3 additions and 0 deletions.
  1. +3 −0 bashrc
View
3 bashrc
@@ -40,6 +40,9 @@ function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/\* \(.*\)/ (\1$(parse_git_dirty))/"
}
# make dir and cd into it - can be multi-path b/c of -p switch
md() { mkdir -p "$@" && cd "$@"; }
# ANSI color codes for reference
# RS => \[\033[0m\] # reset
# HC => \[\033[1m\] # hicolor

0 comments on commit 14c6c9c

Please sign in to comment.