Bash

Enabling Search in the …

If you use the terminal, even a little bit, you will likely need to reuse past commands. Usually this means pressing the up arrow a bunch of times until you find what you need. Here is a handy setup to allow you to “search” past commands and pick the necessary command from a list. Simply …

Which Bash File Am I Even …

If you’ve ever battled various bash profiles to see which one is being used or over ridden, here’s a quick way to troubleshoot. Note: You can find out what shell you’re using by entering: echo $SHELL in your terminal. Let’s say we have two bash files, ~/.bash_profile and …

Cleanup Old Branches in …

Git and GitHub are tools I use a lot for my day to day work and for training sessions I lead. Often I will allow participants in my training sessions to create and push code to a new branch in GitHub. Maybe for a code review, or to use a CI/CD pipeline I have setup. Pretty soon I have a lot of old …