# 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 export ZSH="$HOME/.oh-my-zsh" ZSH_THEME="powerlevel10k/powerlevel10k" plugins=( git zsh-autosuggestions zsh-syntax-highlighting ) source $ZSH/oh-my-zsh.sh # 自动补全优化 bindkey '^ ' autosuggest-accept # PATH 设置(可根据需要自定义) export PATH="/usr/local/bin:$PATH" # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh ZSH_HIGHLIGHT_STYLES[default]='none' export CLICOLOR=1 export LSCOLORS=dxfxcxdxbxegedabagacad ZSH_HIGHLIGHT_HIGHLIGHTERS=(main) ZSH_HIGHLIGHT_STYLES[command]='fg=cyan' ZSH_HIGHLIGHT_STYLES[builtin]='fg=cyan' ZSH_HIGHLIGHT_STYLES[function]='fg=blue' ZSH_HIGHLIGHT_STYLES[arg]='fg=white' ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red' ZSH_HIGHLIGHT_STYLES[separator]='fg=240' ZSH_HIGHLIGHT_STYLES[path]='fg=yellow'