티스토리 뷰


mac을 초기화하거나, 새 맥북이 생겼을 때 터미널 세팅을 하기 위한 기록용도 겸 정보공유



1. iterm2 설치 



2. homebrew 설치    공식사이트

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


3. zsh 설치

$ brew install zsh


4. oh-my-zsh 설치    github

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"



5. oh-my-zsh agnoster 테마 적용하기


Powerline Fonts 다운로드 및 폰트적용


# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts

완료 후 


iterm > Preferences (단축키 cmd + ,) > profiles > text > change font 



powerline 폰트 적용




Solarized dark 테마 다운 및 iterm에 적용


https://ethanschoonover.com/solarized/


위 링크에서 다운로드 후 


iterm > Preferences (단축키 cmd + ,) > profiles > colors > color presets > import 





Solarized Dark.itermcolors 파일 import 후 


color presets에서 Solarized dark 선택



theme 변경 및 사용자명 제거


$ vim ~/.zshrc

ZSH_THEME="agnoster"
prompt_context() {
  if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
    prompt_segment black default ""
  fi
}



6. gitconfig 설정 ( alias, color등 )


--system  모든 사용자계정

--global   해당 사용자계정


$ git config --system --edit

vim 에디터로 config파일 수정 


사용중인 설정




편리하고 아름다운 터미널 완성!


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
링크
TAG
more
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함