Oh My Zsh 安装
2023年3月15日 · 114 字 · 1 分钟
Unleash your terminal like never before.
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with thousands of helpful functions, helpers, plugins, themes, and a few things that make you shout…
ZSH && Oh My Zsh
sudo apt install zsh
zsh --version
>>> zsh 5.8 (aarch64-unknown-linux-gnu)
chsh -s /usr/bin/zsh
echo $SHELL
>>>> /usr/bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i "s|ZSH_THEME=\".*\"|ZSH_THEME=\"powerlevel10k/powerlevel10k\"|g" .zshrc
Dracula
sudo apt-get install dconf-cli
git clone https://github.com/dracula/gnome-terminal
cd gnome-terminal
./install.sh
zsh plugins
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
zsh-syntax-higlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
sed -i "s|plugins=(.*)|plugins=(git zsh-autosuggestions zsh-syntax-highlighting)|g" .zshrc
References :
- https://medium.com/@satriajanaka09/setup-zsh-oh-my-zsh-powerlevel10k-on-ubuntu-20-04-c4a4052508fd
- https://github.com/romkatv/powerlevel10k#oh-my-zsh
- https://en.wikipedia.org/wiki/Z_shell
- https://github.com/ohmyzsh/ohmyzsh
- https://draculatheme.com/gnome-terminal
- https://gist.github.com/dogrocker/1efb8fd9427779c827058f873b94df95