Living in the terminal. The terminal is always there. The command line. All those commands available under my fingertips, it feels something. It feels like an endless possible stream of possibilities. Perhaps not endless, not far from it.
Sometimes I can remember parameters to commands that I don’t run so often. But I still need to look up or rely on the history, now in the form of Atuin, a really powerful extended use of history. Check it up.
Other times there is a series of commands that need to complete a task and that can be a bit cumbersome as I don’t recall them or looking the history or Atuin up for multiple commands are a bit awkward. At least I think that. I recently found a way to solve this, for me. I made a function that I can run every time I need to complete the…
Living in the terminal. The terminal is always there. The command line. All those commands available under my fingertips, it feels something. It feels like an endless possible stream of possibilities. Perhaps not endless, not far from it.
Sometimes I can remember parameters to commands that I don’t run so often. But I still need to look up or rely on the history, now in the form of Atuin, a really powerful extended use of history. Check it up.
Other times there is a series of commands that need to complete a task and that can be a bit cumbersome as I don’t recall them or looking the history or Atuin up for multiple commands are a bit awkward. At least I think that. I recently found a way to solve this, for me. I made a function that I can run every time I need to complete the task that involves multiple commands in a specific order. The function is simply a series of echo’s that print out to the screen the commands or cheat sheet if you will, in the order I need them.
My specific use case when I needed this was to set up a GitHub from the terminal without having to use the browser to log into github.com, create the repository and then proceed from the command line. I installed the gh cli command from GitHub and have my SSH key already installed as one of the keys in my GitHub account. The function even check out my username an takes in the folder or repo name that I want to add as a new repository and dynamically prints out the commands I need, ready to be copied or written as stated.
I am sure that there will be other such functions that can live at the bottom of my ~/.bashrc file.
