15 字
1 分钟
Linux 配置
环境安装
sudo apt updatesudo apt install zsh git lua5.4 -y配置
# 切换终端chsh -s $(which zsh)
# 安装 oh-my-zshsh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
# 安装zgenomgit clone https://github.com/jandamm/zgenom.git "${HOME}/.zgenom"自用配置
- vim ~/.zshrc
# Set up the prompt
zstyle ':omz:update' mode disabled
autoload -Uz promptinitpromptinitprompt adam1
setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vibindkey -e
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:HISTSIZE=1000SAVEHIST=1000HISTFILE=~/.zsh_history
# Use modern completion systemautoload -Uz compinitcompinit
# load zgenomsource "${HOME}/.zgenom/zgenom.zsh"
# Check for plugin and zgenom updates every 7 days# This does not increase the startup time.# zgenom autoupdate
# if the init script doesn't existif ! zgenom saved; then echo "Creating a zgenom save"
# Add this if you experience issues with missing completions or errors mentioning compdef. # zgenom compdef
# Ohmyzsh base library zgenom ohmyzsh
# You can also cherry pick just parts of the base library. # Not loading the base set of ohmyzsh libraries might lead to issues. # While you can do it, I won't recommend it unless you know how to fix # those issues yourself.
# Remove `zgenom ohmyzsh` and load parts of ohmyzsh like this: # `zgenom ohmyzsh path/to/file.zsh` # zgenom ohmyzsh lib/git.zsh # load git library of ohmyzsh
# plugins zgenom ohmyzsh plugins/git zgenom ohmyzsh plugins/sudo # just load the completions # zgenom ohmyzsh plugins/docker-compose zgenom ohmyzsh --completion plugins/docker-compose
zgenom load zsh-users/zsh-syntax-highlighting
# add binaries zgenom bin tj/git-extras
# completions zgenom load zsh-users/zsh-completions zgenom load zsh-users/zsh-autosuggestions
# theme # zgenom ohmyzsh themes/arrow zgenom load eendroroy/alien
# zgenom load wting/autojump zgenom load le0me55i/zsh-extract
zgenom load skywind3000/z.lua
# save all to init script zgenom save
# Compile your zsh files zgenom compile "$HOME/.zshrc" # Uncomment if you set ZDOTDIR manually # zgenom compile $ZDOTDIR
fi
# zstyle ':omz:update' mode manualzstyle ':omz:update' mode disabled
# 禁用共享命令记录setopt no_share_history- source ~/.zshrc
NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash部分信息可能已经过时









