zsh配置备份(.zshrc设置, onmyzsh, zsh_suggestion)

zsh配置备份(.zshrc设置, onmyzsh, zsh_suggestion)

.zshrc设置

# 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 you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
 git
 zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
#export LANG=en_US.UTF-8
export LANG="zh_CN.UTF-8"
alias ohmyzsh="vim ~/.zshrc"
#alias ohmyzsh="vim ~/.oh-my-zsh"
#alias -g ls='ls -F --color=auto'
alias -g ll='ls -l'
alias -g la='ls -a'
alias -g l='ls'
eval "$(pyenv init -)"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"

export PYENV_VIRTUALENV_DISABLE_PROMPT=1
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

安装ohmyzsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

powerlevel10k主题

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

zsh_autosuggestions

git clone https://gitee.com/githubClone/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

其他:镜像安装pyenv

curl -L https://gitee.com/lixgbnu/pyenv-installer/raw/master/bin/pyenv-installer | bash  
# pyenv
pyenv versions
pyenv install 3.8.2
pyenv virtualenv 3.8.2 main
pyenv global main
# pip升级
python -m pip install --upgrade pip.
pip install -U setuptools

posted @ 2022-04-12 09:15  GeoAi  阅读(581)  评论(0编辑  收藏  举报