Created
May 24, 2025 01:59
-
-
Save JLarky/b2a7d22bfc93ecc2f50d49ca55ec22f8 to your computer and use it in GitHub Desktop.
tmp function with zsh
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
# tmp function | |
function tmp() { | |
local tmp_dir=$(mktemp -d) | |
echo "Created temporary directory: $tmp_dir" | |
cd $tmp_dir | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment