1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-02-05 16:43:22 +00:00

Add mc helper for mkdir -p && cd

This commit is contained in:
Holger Just 2025-02-15 11:29:40 +01:00
parent 810218c09a
commit 97ae98280f
No known key found for this signature in database

View File

@ -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}"