# .zshrc I have this in so many places and I need to have a solid reference of a working version. 2024-02-14: As of today, this is the "best working" version I have ```sh # Exports export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:$PATH export ZSH="$HOME/.oh-my-zsh" ZSH_THEME="powerlevel10k/powerlevel10k" POWERLEVEL9K_MODE="nerdfont-complete" plugins=(git zsh-autosuggestions zsh-syntax-highlighting) # Store `.zcompdump` files in the ZSH cache directory, where they belong export ZSH_COMPDUMP=$ZSH/cache/completions/.zcompdump-$HOST source $ZSH/oh-my-zsh.sh # User-defined Aliases and Functions [[ ! -f ~/.shell_functions ]] || source ~/.shell_functions [[ ! -f ~/.shell_aliases ]] || source ~/.shell_aliases # Instant Prompt Preamble # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi # If .fzf.zsh exists, source it [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # If .p10k.zsh exists, source it [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # If .zshrc.$USER exists, source it [[ ! -f ~/.zshrc.$USER ]] || source ~/.zshrc.$USER [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh ```