Skip to content

Instantly share code, notes, and snippets.

View LeuschkeTressa's full-sized avatar

LeuschkeTressa

  • Sweden
View GitHub Profile
@therealchjones
therealchjones / macOS-path.md
Last active February 27, 2024 21:25
Some notes on the environment (especially PATH) in macOS

macOS PATH and Visual Studio Code

As of macOS Monterey 12.2.1 and Visual Studio Code 1.66.0.

The value of macOS's PATH environment variable is set or modified by many different processes. By the time you run programs from the integrated terminal in Visual Studio Code, it's changed several times. Running a task or launching an extension in VS Code makes it even more complicated. Let's take a look.

PATH inheritance

On macOS, each process after booting is started by another process. When creating the "child" process, the "parent" process can choose what environment the child process starts with. Most programs either allow their child processes to "inherit" the same process they started with or start their child processes with "clean" environments with relatively few environment variables set, but nearly any customization of the environment is possible for each child process.

@thewoolleyman
thewoolleyman / haskell_precedence_and_associativity.md
Last active January 6, 2023 12:52
Haskell Precedence and Associativity

Haskell Precedence and Associativity

Operator precedence vs. operator associativity:

Operator Precedence

...describes the nesting order of compound expressions of different operator types.

Operator Associativity