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
if &term =~ "xterm\\|rxvt"
" use an red cursor in insert mode
let &t_SI = "\<Esc>]12;red\x7"
" use an orange-ish cursor otherwise
let &t_EI = "\<Esc>]12;\#FFA560\x7"
silent !echo -ne "\033]12;\#FFA560\007"
" reset cursor when vim exits
autocmd VimLeave * silent !echo -ne "\033]112\007"
endif
Code: Select all
syntax on
colorscheme torte