iTerm2

Useful shortcuts

  • βŒ₯ + ⌘ + / - Show popup with recent directories
  • ⌘ + ; - Autocomplete command
  • ⇧ + ⌘ + ; - Show most recent commands
  • ⇧ + ⌘ + . - Edit command before executing it (Composer)

Use “Natural” shortcuts when editing text (same as the composer)

Go to Settings > Profiles > Keys > Key Mappings and activate the Natural Text Editing preset.

– via Reddit

Remove the right arrow to the left of the prompt

It’s the Marks feature. Disable it from Preferences -> Profiles -> <your profile> -> Terminal -> Shell integration -> Show mark indicators -> Off

– via Stack Overflow

Display status bar at the bottom

Preferences -> Appearance -> General -> Status bar location -> Bottom

Display shell variable in status bar (with Zsh)

After sourcing .iterm2_shell_integration.zsh, add the iterm2_print_user_vars function to your .zshrc and iterm2_set_user_var your variables:

source /Users/vladiliescu/.iterm2_shell_integration.zsh

# Your code here:
iterm2_print_user_vars() {
  iterm2_set_user_var azure_dir $(basename $AZURE_CONFIG_DIR ".Azure (Default)")
}

Then Preferences -> Profiles -> <YourProfile> -> Session -> Configure Status Bar, add an Interpolated String and set its string value to ☁️ \(user.azure_dir).

– via iTerm2 Docs

VS Code

Useful extensions

REST Client

REST Client allows you to send HTTP request and view the response directly from Visual Studio Code.

Keyboard Macro Beta

Recordable keyboard macro for Visual Studio Code

Other

Minimum Package Age Restrictions

Setting them to 7 days for example

uv 0.9.17+

https://docs.astral.sh/uv/concepts/resolution/#dependency-cooldowns

cat ~/.config/uv/uv.toml

# uv 0.9.17+
mkdir -p ~/.config/uv
echo 'exclude-newer = "7 days"' >> ~/.config/uv/uv.toml

Setting export UV_EXCLUDE_NEWER=P7D should also work. Note that while uv sync works as expected, uv sync --frozen will happily install packages mentioned in the lockfile, even if they’re newer than the limit you’ve just set.

HOWEVER. Apparently, uv will trust a lockfile that declares a proper cutoff even when its locked packages do not respect that cutoff 🀨. Which, to me, means someone from your team (or one of their agents) might be able to craft a lockfile installing a malicious dependency that would have otherwise failed your cutoff.

pnpm 10.16+

pnpm config list

# pnpm 10.16+
pnpm config set --global --json minimumReleaseAge 10080
# pnpm 11+
pnpm config set --global --json minimumReleaseAgeStrict true
pnpm config set --global --json minimumReleaseAgeIgnoreMissingTime false

pip 26.1+

python3 -m pip config list

# pip 26.1+
python3 -m pip config --user set global.uploaded-prior-to P7D