Last active
December 7, 2024 14:56
-
-
Save armamini/ddaaffb2a55074e3a95ab44dbb45ebd3 to your computer and use it in GitHub Desktop.
Make temp file easily
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
| alias tmp='tmpfile=$(mktemp ~/Temp/tempfile.XXXXXX) && { echo "# Temporary file: $tmpfile"; echo ""; } > "$tmpfile" && vi "$tmpfile"' | |
| alias ltmp='[ -f "$tmpfile" ] && vi "$tmpfile" || echo "No temporary file found."' |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before using, make ~/Temp directory.