Created
September 26, 2025 22:52
-
-
Save partrita/80c4740c9e6e4758d533ba5acbf6e48c to your computer and use it in GitHub Desktop.
make it faster oh my zsh.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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