杂项
环境安装
Zimfw

卸载 oy my zsh

uninstall_oh_my_zsh

安装设置 zsh 和 zimfw

apt install -y zsh chroma git curl
chsh -s $(which zsh)
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
 
 
# autojump
git clone https://github.com/wting/autojump.git --depth=1
cd autojump
./install.py
cd .. && rm -rf autojump
 
 
# 配置 zsh,按自己喜好添加别名
cat <<EOL >> ~/.zshrc
 
[[ -s /root/.autojump/etc/profile.d/autojump.sh ]] && source /root/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u
 
alias sdr="systemctl daemon-reload"
alias sr="systemctl restart"
alias g="git"
alias gc="git commit"
alias gs="git stash"
alias gp="git pull"
alias ggp="git push"
alias gaa="git add ."
alias gch="git checkout"
alias nr="npm run"
alias br="bun run"
alias bx="bunx"
alias py="python"
alias ard="aria2c --summary-interval=10 -x 3 --allow-overwrite=true -Z"
alias jl="journalctl -o cat -fu"
 
EOL
 
# 安装主题p10k
echo "zmodule romkatv/powerlevel10k" >> ~/.zimrc
# zimfw install
zsh