| title | Zsh | |
|---|---|---|
| date | 2018-12-15 04:06:10 -0800 | |
| tags |
|
|
| categories |
|
💠
💠 2025-09-04 14:55:42
- 提供较为强大的历史命令match功能
- 较为丰富的扩展实现
- 更现代化的支持 更多语言,unicode字符
- 数组使用
list=(a b c); for i in $list; do echo $i; done
Github
关于PS1环境变量的折腾因为含特殊字符GitBook构建通不过,只能放出去了
- 安装好 zsh wget git
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"vi ~/.zshrc进行配置
plugins=(
git mvn docker
)
- 个人常用 git gitfast docker kubectl sudo colored-man-pages systemd emoji dotenv
-
推荐powerlevel10k 性能强劲,交互式配置- Github
- install nerd-fonts-meslo-lg
- 调整 分支展示长度 修改 ~/.p10k.zsh
-
Bullet Train
桌面在用 bullet-train- Github repo | 必需的符号字体
- Source Code Pro for Powerline + Powerline + Awesonme 的 Bold 字体搭配最合适
wget https://raw.githubusercontent.com/caiogondim/bullet-train.zsh/master/bullet-train.zsh-theme -O /home/kcp/.oh-my-zsh/custom/themes
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf ~/.local/share/fonts/
fc-cache -vf ~/.local/share/fonts/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/- mkdir $ZSH_CUSTOM/themes/
- wget http://raw.github.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme
- config .zshrc to
ZSH_THEME="bullet-train"
基于muse的主题 用在服务器上挺好
~/.oh-my-zsh/custom/themes/muse-myth.zsh-theme 源码