GitHub - Narven/mkcd: mkdir + cd = mkcd. Create directories and step into them effortlessly in a single command. 🎯

mkdir + cd = mkcd. Create directories and step into them effortlessly in a single command. 🎯

Features

  • Creates directories (including parent directories if needed)
  • Validates directory existence and handles errors gracefully
  • Cross-platform support (Windows, macOS, Linux)
  • Handles both relative and absolute paths
  • Supports tilde (~) expansion for home directory

Usage

Use it like:

mkcd foo           # Creates `foo` and changes into it
mkcd ~/projects/new # Creates directory in home/projects and changes into it
mkcd path/to/deep  # Creates nested directories and changes into the last one