install zsh และ oh-my-zsh
Posted: 25 Jul 2022, 18:54
Code: Select all
sudo apt install zsh
Code: Select all
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Code: Select all
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
เปลี่ยน theme เป็น bira
Code: Select all
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
jsontools
colored-man-pages
)
edit bira.zsh-theme
เปลี่ยนค่า
Code: Select all
local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}"
Code: Select all
local current_dir="%B%{$fg[cyan]%}%~ %{$reset_color%}"
เพิ่มบรรทัด
Code: Select all
syntax on
colorscheme desert
Code: Select all
syntax on
colorscheme torte