使用 chezmoi 管理
工具 | 备注 |
---|---|
zim | zsh 配置框架,类 ohmyzsh |
asdf-vm | 语言、工具多版本管理 |
alacritty | 终端 |
zellij | 分屏,类 tmux |
starship | 终端提示 |
ov | paper,替代 less more 等 |
batcat | 彩色的,更多功能的 cat |
direnv | 进入目录自动激活变量 |
fzf | 模糊搜索 |
virtualenvwrapper | Python venv 管理 |
rofi | 启动器,类 alfred、albert |
i3-wm | 平铺 wm |
polybar | 提供好看的 status bar 配合 i3 |
# cmd apps
sudo apt install git curl zsh virtualenvwrapper direnv bat fzf -y
# gui apps
sudo apt install alacritty rofi -y
https://asdf-vm.com/guide/getting-started.html
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1
source ~/.asdf/asdf.sh
#/bin/bash
common="chezmoi starship"
language="golang nodejs rust"
tools="helm kubectl zellij"
asdf_install() {
plugins=()
for var in "$@"; do
eval "plugins+=(\$${var})"
done
for plugin in "${plugins[@]}"; do
IFS=' ' read -ra values <<< "$plugin"
for value in "${values[@]}"; do
echo " === asdf install $plugin ==="
asdf plugin-add "$plugin"
asdf install "$plugin" latest
done
done
}
asdf_install common tools language
chezmoi init --apply jing2uo
chezmoi update -v
exec zsh