Skip to content

Instantly share code, notes, and snippets.

@partrita
Created September 26, 2025 22:52
Show Gist options
  • Select an option

  • Save partrita/80c4740c9e6e4758d533ba5acbf6e48c to your computer and use it in GitHub Desktop.

Select an option

Save partrita/80c4740c9e6e4758d533ba5acbf6e48c to your computer and use it in GitHub Desktop.
make it faster oh my zsh.
# from https://scottspence.com/posts/speeding-up-my-zsh-shell#ok-so-what-was-making-my-shell-slow
# Performance optimizations
DISABLE_AUTO_UPDATE="true"
DISABLE_MAGIC_FUNCTIONS="true"
DISABLE_COMPFIX="true"
# Cache completions aggressively
autoload -Uz compinit
if [ "$(date +'%j')" != "$(stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)" ]; then
compinit
else
compinit -C
fi
# Oh My Zsh path
export ZSH="$HOME/.oh-my-zsh"
# Autosuggest settings
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#663399,standout"
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE="20"
ZSH_AUTOSUGGEST_USE_ASYNC=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment