Skip to content

Instantly share code, notes, and snippets.

@martinbuberl
Last active May 28, 2025 20:26
Show Gist options
  • Save martinbuberl/a6fa5568d178365dfb6d117a0da8fe07 to your computer and use it in GitHub Desktop.
Save martinbuberl/a6fa5568d178365dfb6d117a0da8fe07 to your computer and use it in GitHub Desktop.
Latest Zsh Profile File (~/.zshrc)
printf "\33c\e[3J" # clear terminal (removes "Last login" message)
echo ".zshrc loaded ..."
# Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)" # add Homebrew to $PATH
# asdf
# install asdf as a universal version manager via Homebrew "brew install asdf"
# (see https://asdf-vm.com/guide/getting-started.html#_1-install-asdf);
. /opt/homebrew/opt/asdf/libexec/asdf.sh # load asdf (installed via Homebrew)
# pnpm
# pnpm comes bundled with newer Node versions (>=16.9), you can enable it via
# Corepack (see https://nodejs.org/api/corepack.html); run the following lines,
# to enable it and add pnpm to the root configuration file "~/package.json":
# $ corepack enable
# $ corepack use pnpm
export PATH=$(npm root -g)/corepack/shims:$PATH # add pnpm shims to global path
# shortens the promt prompt from "username@computer ~ %" to "~ $"
export PS1="%~ $ "
# removes duplicates in $PATH
typeset -U path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment