Created
November 19, 2021 21:36
-
-
Save waldrupm/e8ef34e3f21b8ef062bdd571de3025b9 to your computer and use it in GitHub Desktop.
ZSH touch2 function - mkdir and touch in one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function touch2() { | |
| mkdir -p "$(dirname "$1")" && touch "$1"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment