Bash scripting 101

Have you ever found yourself in a situation while working in terminal, where you paused for a moment and thought: Dudeee this command is too useful to forget, I’ve got to remember this! .. After that, you simply return to work and just forget about it? If yes, then this post is for you.

I created a simple bash script that will pull the last command you performed from your .zsh_history and then store it in a previously created .md file with Markdown Table in it.

The script and the .md file are available for inspection at this link.


  • long ass cmd syntax that might come in handy

  • triggering the script

  • my updated with the new command