Blogs

Troubleshooting a …

Sometimes we have Docker containers that just won’t run, maybe they run briefly and then unexpectedly quit. If you don’t have access to the running container, and the logs provided by docker logs <container id> aren’t very helpful, try this trick. Let’s say our …

Run a Function Every Time …

If you have a set of tasks you do every time you change directories, e.g. changing to a new project, here is a quick way to automate those tasks. The key component is the chpwd_functions=() function. This function, short for change present working directory, runs every time the directory changes. …

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 …