mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6
15 字
1 分钟
Linux 配置
2026-02-09
统计加载中...

环境安装#

sudo apt update
sudo apt install zsh git lua5.4 -y

配置#

# 切换终端
chsh -s $(which zsh)
# 安装 oh-my-zsh
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
# 安装zgenom
git clone https://github.com/jandamm/zgenom.git "${HOME}/.zgenom"

自用配置#

  1. vim ~/.zshrc
# Set up the prompt
zstyle ':omz:update' mode disabled
autoload -Uz promptinit
promptinit
prompt adam1
setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.zsh_history
# Use modern completion system
autoload -Uz compinit
compinit
# load zgenom
source "${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 exist
if ! 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 manual
zstyle ':omz:update' mode disabled
# 禁用共享命令记录
setopt no_share_history
  1. source ~/.zshrc

NVM#

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Linux 配置
https://blog.sleep0.de/posts/linux-config/
作者
Sleep1223
发布于
2026-02-09
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时