install zsh และ oh-my-zsh

Post Reply
brid.surapol
Posts: 163
Joined: 11 Apr 2013, 11:43

install zsh และ oh-my-zsh

Post by brid.surapol »

Code: Select all

sudo apt install zsh
ที่ home

Code: Select all

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
ที่ ~/.oh-my-zsh/plugins

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

ใน .zshrc
เปลี่ยน theme เป็น bira

Code: Select all

plugins=(
        git
        zsh-autosuggestions
        zsh-syntax-highlighting
        jsontools
        colored-man-pages
)
ใน .oh-my-zsh/themes
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%}"
edit .vimrc
เพิ่มบรรทัด

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
ใน macOS

Code: Select all

syntax on
colorscheme torte
Post Reply

Return to “การใช้งาน Linux”