diff --git a/.bashrc b/.bashrc index 57510b2..74c24bd 100644 --- a/.bashrc +++ b/.bashrc @@ -261,6 +261,11 @@ ce() { ${BACKGROUND_EDITOR} . } +mc() { + [[ "$#" -lt 1 ]] && return 1 + mkdir -p "$@" && cd "$1" +} + # bash completion with with_project and functions using it _with_project() { local CDPATH; CDPATH="$(project_dirs):{$CDPATH}"