mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
13 lines
201 B
Bash
Executable File
13 lines
201 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
# Creates a directory then `cd`'s into the directory
|
|
|
|
function mkcd() {
|
|
dir=$1
|
|
if [ -z "$dir" ]; then
|
|
echo "usage: mkcd <dir>" && return 1
|
|
fi
|
|
mkdir "$dir"
|
|
cd "$dir"
|
|
}
|