[OSX] brew + iterm2

INSANEZINDOL·2021년 11월 25일
0

osx

목록 보기
2/3
post-thumbnail
  1. brew 설치
/usr/bin/ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install](https://raw.githubusercontent.com/Homebrew/install/master/install))"
  1. zsh 설치
brew install zsh
  1. Oh my ZSH 설치
sh -c "$(curl -fsSL [https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh](https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh))"
  1. zshrc파일 수정하기
vi ~/.zshrc

ZSH_THEME=”robyrussell” -> "agnoster" 수정

하단 추가

prompt_context() {
	if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
		prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
	fi
}
  1. 파일 적용
source ~/.zshrc
  1. d2codingfont 설치
💡 [https://github.com/naver/d2codingfont](https://github.com/naver/d2codingfont)

Preferences -> Profile -> Text로 진입 Font : D2Coding 선택

  1. plugin 설치

zsh-syntax-highlighting

git clone [https://github.com/zsh-users/zsh-syntax-highlighting.git](https://github.com/zsh-users/zsh-syntax-highlighting.git) ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

zsh-autosuggestions

git clone [git://github.com/zsh-users/zsh-autosuggestions](git://github.com/zsh-users/zsh-autosuggestions) $ZSH_CUSTOM/plugins/zsh-autosuggestions

수정

plugins=(
	git
	zsh-syntax-highlighting
	zsh-autosuggestions
)
  1. neovim 설치
brew install neovim
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font
  1. zshrc파일 수정하기
vi ~/.zshrc

하단 추가

alias vim="nvim"
alias vi="nvim"
alias vimdiff="nvim -d"
export EDITOR=/usr/local/bin/nvim
  1. 파일 적용
source ~/.zshrc
  1. plugin 설치
curl -sLf [https://spacevim.org/install.sh](https://spacevim.org/install.sh) | bash
profile
Java Backend Developer

0개의 댓글

관련 채용 정보