How to automatically set environment variables per folder (directory) on bash shell on macOS High Sierra

I have a little CLI toy project that uses the file system for storage (YAML files) and defaults to a dot folder under the home folder (~), this default can be overridden by an environment variable that sets the path. To ease manual testing, I wanted to automatically set up an environment variable wheneve I cd’ed into the project folder, also as bonus I wanted this variable to be removed from the environment whenever I cd’ed  out. Googling a bit,

Visual Studio Code 1.24.1 Toggle Maximize Panel (Terminal) Keybinding Shortcut

In Visual Studio Code 1.24.1. on macOS, the keybinding to toggle the visibility of the Panel (Problems, Output, Debug Console and Terminal) is Command + J, this is really handy. But if you have a widescreen monitor  and you like keeping the panel open at all times with the terminal, for example, it would be better to be able to toggle the size (width) of the panel. This keybinding doesn’t exists, after googling a bit I found a closed request

Installing Rust lang 1.27.2 on macOS High Sierra 10.13.6

If you search internet for "install rust macos" is is likely that the first entry in the list will be and the only instruction is to run the following in your terminal curl -sSf | sh which is a classic minimal install of a command from the internet. Searched a little bit and looked like Brew is not particularly used for this task, so I went away with...

Site Footer