Table of contents
1. iTerm 설치
2. Oh My Zsh 설치
3. Powerlevel9k 테마 설치
4. Powerlevel9k 폰트 설치
5. Powerlevel9k Prompt Customization
6. vim 설정
1. iTerm 설치
2. Oh My Zsh 설치
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo $0
설치가 안되면 rm -rf ~/.oh-my-zsh
로 해당 폴더 삭제 후 재시도
3. Powerlevel9k 테마 설치
powerlevel9k 테마를 oh-my-zsh 테마 폴더에 다운로드
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/themes/powerlevel9k
oh my zsh run command 수정
vi ~/.zshrc
/ZSH_THEME
i
ZSH_THEME="powerlevel9k/powerlevel9k"
4. Powerlevel9k 폰트 설치
git clone https://github.com/powerline/fonts.git /tmp/powerlevel9k-fonts && cd $_
sh ./install.sh
cd .. && rm -rf /tmp/powerlevel9k-fonts
Command + , 로 설정을 연 후, Profiles > Text > Font > Meslo LG L DZ for Powerline
mkdir -p ~/.iterm && curl https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Brogrammer.itermcolors > ~/.iterm/Brogrammer.itermcolors
Command + , 로 설정을 연 후, Profiles > Color > Color Presets… > Import… > Command + Shift + G > ~/.iterm/Brogrammer.itermcolors
> Brogrammer 선택
Visual Studio Code도 Command + ,으로 설정을 연 후, font를 검색해서 Terminal > Integegrated: Font Family > Meslo LG L DZ for Powerline
로 값을 설정할 수 있다.
5. Powerlevel9k Prompt Customization
https://github.com/Powerlevel9k/powerlevel9k#prompt-customization
cat <<EOF >> ~/.zshrc
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(user dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status)
EOF
6. vim 설정
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
cat <<EOF >> ~/.vimrc
set hlsearch
set nu
set autoindent
set scrolloff=2
set wildmode=longest,list
set ts=4
set sts=4
set sw=1
set autowrite
set autoread
set cindent
set bs=eol,start,indent
set history=256
set laststatus=2
set paste
set shiftwidth=4
set showmatch
set smartcase
set smarttab
set smartindent
set softtabstop=4
set tabstop=4
set ruler
set incsearch
"" set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
"" :hi CursorLine cterm=NONE ctermbg=yellow ctermfg=white guibg=yellow guifg=white
:hi CursorColumn cterm=NONE ctermbg=yellow ctermfg=white guibg=yellow guifg=white
"" augroup CursorLine
"" au!
"" au VimEnter,WinEnter,BufWinEnter * setlocal cursorline
"" au WinLeave * setlocal nocursorline
"" augroup END
EOF
vi ~/.zshrc
alias vi=vim
참고. iTerm 기능
- Split view
- Command + D: Vertical View
- Command + Shift + D: Horizontal View
참고. oh-my-zsh offline install
https://gist.github.com/hewerthomn/65bb351bf950470f6c9e6aba8c0c04f1