Skip to content

Instantly share code, notes, and snippets.

@theptrk
Last active July 14, 2018 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theptrk/3d1c13048423aac57c508aa414f2b2d3 to your computer and use it in GitHub Desktop.
Save theptrk/3d1c13048423aac57c508aa414f2b2d3 to your computer and use it in GitHub Desktop.

Its likely more natural for you to type at the bottom of the file so with normal Go we move the cursor to the bottom before reading from the date command.

# bash_profile.sh
alias did="vim +'normal Go' +'r!date' ~/did.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment