Recent Articles - Shell
![Resetting the Working Directory on Shell Script Exit](../../../static/img/blog/resetting-the-working-directory-on-shell-script-exit-thumb.jpg)
Resetting the Working Directory on Shell Script Exit
Mar 5, 2024 · 3 min read
Sometimes you need to change the working directory in a shell script. You should take care to reset it back.
![Automate Your macOS Default Settings](../../../static/img/blog/automate-your-macos-defaults-thumb.jpg)
Automate Your macOS Default Settings
Feb 18, 2024 · 7 min read
You can use built-in CLI tools to apply your preferred macOS settings.
![Bash Environment Variable Defaults](../../../static/img/blog/bash-environment-variable-defaults-thumb.jpg)
Bash Environment Variable Defaults
Apr 5, 2023 · 3 min read
Bash scripts can set defaults for environment variables that are optionally supplied at execution time.
![Hash a String to a Number in Bash](../../../static/img/blog/hash-a-string-to-a-number-in-bash-thumb.jpg)
Hash a String to a Number in Bash
Mar 5, 2023 · 2 min read
Sometimes you need to turn a stable string ID into a stable number ID, and it's relatively easy to do in Bash.
![Automatically Execute Code Before & After Unix Commands](../../../static/img/blog/automatically-execute-code-before-after-unix-commands-thumb.jpg)
Automatically Execute Code Before & After Unix Commands
Jan 19, 2023 · 4 min read
It can be helpful to run some code automatically before or after calling a command, and it is easy to accomplish with shadowing functions.
![Reliably Finding Files in $PATH](../../../static/img/blog/reliably-finding-files-in-path-thumb.jpg)
Reliably Finding Files in $PATH
Aug 27, 2021 · 4 min read
Most built-in commands commonly used to find files in $PATH don't always work quite as expected, or are shell-specific.
![Docker Shell vs. Exec Form](../../../static/img/blog/docker-shell-vs.-exec-form-thumb.jpg)
Docker Shell vs. Exec Form
Mar 22, 2021 · 4 min read
The RUN, ENTRYPOINT, and CMD, instructions all have two different forms they can be written in, and those forms change how each of those instructions behaves.
![You Don't Need an Init System for Node.js in Docker](../../../static/img/blog/you-don-t-need-an-init-system-for-node.js-in-docker-thumb.jpg)
You Don't Need an Init System for Node.js in Docker
Mar 20, 2021 · 5 min read
But you do need to think about how your application handles exit signals.