Skip to content

Instantly share code, notes, and snippets.

@rlaace423
Last active August 27, 2023 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlaace423/fa09c3238d1d8070a046c5794846fcf6 to your computer and use it in GitHub Desktop.
Save rlaace423/fa09c3238d1d8070a046c5794846fcf6 to your computer and use it in GitHub Desktop.
install zsh & nvm
# install defaults
brew install zsh
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# zsh-syntax-highlighting (명령어 색상 하이라이팅)
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# edit .zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
...
ZSH_THEME="gnzh"
...
alias ll='ls -lAh'
alias la='ls -lh'
# make nvm work with zsh
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | zsh
# 설정하지 않았다면 root 패스워드 설정
sudo passwd
# 최신 git 설치
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt upgrade -y
sudo apt install git
git config --global user.name "Sangho Kim (Sam)"
git config --global user.email "rlaace423@gmail.com"
git config --list
# zsh 설치
sudo apt install zsh
# oh-my-zsh 설치
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# zsh-autosuggestions 설치 (자주 사용한 명령어 자동완성)
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-syntax-highlighting (명령어 색상 하이라이팅)
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# edit .zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
...
ZSH_THEME="gnzh"
...
alias ll='ls -lAh'
alias la='ls -lh'
# install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment