Skip to content

Instantly share code, notes, and snippets.

@armamini
Last active December 7, 2024 14:56
Show Gist options
  • Select an option

  • Save armamini/ddaaffb2a55074e3a95ab44dbb45ebd3 to your computer and use it in GitHub Desktop.

Select an option

Save armamini/ddaaffb2a55074e3a95ab44dbb45ebd3 to your computer and use it in GitHub Desktop.
Make temp file easily
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."'
@armamini
Copy link
Author

armamini commented Dec 7, 2024

Before using, make ~/Temp directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment