Skip to content

Instantly share code, notes, and snippets.

@Sansui233
Last active March 15, 2024 18:36
Show Gist options
  • Select an option

  • Save Sansui233/55778f5a828ed3b53a45ce69fed5ffc6 to your computer and use it in GitHub Desktop.

Select an option

Save Sansui233/55778f5a828ed3b53a45ce69fed5ffc6 to your computer and use it in GitHub Desktop.
Terminal configure with zi and p10k
alias proxy="export http_proxy='socks://127.0.0.1:10808';export https_proxy='socks://127.0.0.1:10808'"
alias unproxy="export http_proxy='';export https_proxy=''"
alias vim='/c/Program\ Files/Neovim/bin/nvim.exe'
alias sudo='/c/Program\ Files\ \(x86\)/gsudo/sudo.exe'
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
if [ -f '/c/Users/lingn/miniconda3/Scripts/conda.exe' ]; then
#eval "$('/c/Users/lingn/miniconda3/Scripts/conda.exe' 'shell.zsh' 'hook')"
eval "$('/c/Users/lingn/miniconda3/Scripts/conda.exe' 'shell.zsh' 'hook' | sed -e 's/"$CONDA_EXE" $_CE_M $_CE_CONDA "$@"/"$CONDA_EXE" $_CE_M $_CE_CONDA "$@" | tr -d \x27\\r\x27/g')"
fi
# <<< conda initialize <<<
# zsh
setopt AUTO_PUSHD
export CLICOLOR=1
export LSCOLORS=ExGxFxdaCxDaDahbadeche
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
# zi
source ~/.zi.zsh; zzinit
# source <(curl -sL init.zshell.dev); zzinit
# 插件
zi ice wait lucid atload'_zsh_autosuggest_start'
zi light zsh-users/zsh-autosuggestions
zi ice wait lucid atinit='zpcompinit'
# zi light zdharma/fast-syntax-highlighting
zi light agkozak/zsh-z # 不能用 eval "$(zoxide init zsh)" 会冲突
zi snippet OMZP::git
zi light zsh-users/zsh-completions
autoload -Uz compinit; compinit
zinit cdreplay -q
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
autoload -Uz compinit
compinit
## theme - pure
# install: `zi ice pick"async.zsh" src"pure.zsh"``
zi light sindresorhus/pure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment