Share
Sign In

zsh, oh-my-zsh install & Setting

zsh 설치
zsh 설치
sudo apt install zsh
zsh를 기본 sh로 변경
sudo chsh -s $(which zsh)
터미널이 재시작 후
숫자키 2를 눌러 권장 설정으로 세팅한다.
oh-my-zsh 설치
oh-my-zsh 설치
curl, wget, fetch 중 한가지 방법으로 설치한다.
#curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #wget sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #fetch sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
자세한 부분은 아래 공식 문서 참고
테마변경
#zshrc 수정 vim ~/.zshrc #vim #zsh 내용의 ZSH_THEME 부분을 변경 ZSH_THEME='agnoster'
zsh-autosuggestion설치
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"my-zsh/custom}/plugins/zsh-autosuggestions
syntax highlight 설치 zsh-syntax-highlighting
mkdir ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git cd ~
zsh-syntax-highlighting을 못찾는 경우
.zshrc 에 플러그인 추가
vim ~/.zshrc # zshrc 내용 중 plugins 부분에 zsh-syntax-highlighting추가 # 추가는 ','로 구분하는 것이 아닌 whitespace로 구분 # 예 : plugins = (git zsh-autosuggestion) plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
터미널을 재부팅하거나 아래의 코드를 입력하면 적용됨.
source ~/.zshrc
Folder colors are unreadable with default terminal theme.
아래처럼 bash 또는 zshrc 설정 때문에 폴더 명 뒤에 색이 덧칠되어 읽기 힘든 경우가 있다.
이런경우 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
LS_COLORS="ow=01;36;40" && export LS_COLORS
ow stands for 'other, writable', tw is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
 on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
그다음 터미널을 재시작하면 끝난다.
cd tab 후 뜬 폴더 리스트의 배경색 변경
위와 같이 cd tab을 입력하여 뜬 폴더 리스트가 배경색에 의해 알아볼 수 없다면 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}" autoload -Uz compinit compinit
keyBind
bindkey "\e[1;3D" backward-word # ⌥← bindkey "\e[1;3C" forward-word # ⌥→ bindkey "^[[1;9D" beginning-of-line # cmd+← bindkey "^[[1;9C" end-of-line # cmd+→
powerlevel10k 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
zsh 설치
zsh 설치
sudo apt install zsh
zsh를 기본 sh로 변경
sudo chsh -s $(which zsh)
터미널이 재시작 후
숫자키 2를 눌러 권장 설정으로 세팅한다.
oh-my-zsh 설치
oh-my-zsh 설치
curl, wget, fetch 중 한가지 방법으로 설치한다.
#curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #wget sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #fetch sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
자세한 부분은 아래 공식 문서 참고
테마변경
#zshrc 수정 vim ~/.zshrc #vim #zsh 내용의 ZSH_THEME 부분을 변경 ZSH_THEME='agnoster'
zsh-autosuggestion설치
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"my-zsh/custom}/plugins/zsh-autosuggestions
syntax highlight 설치 zsh-syntax-highlighting
mkdir ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git cd ~
zsh-syntax-highlighting을 못찾는 경우
.zshrc 에 플러그인 추가
vim ~/.zshrc # zshrc 내용 중 plugins 부분에 zsh-syntax-highlighting추가 # 추가는 ','로 구분하는 것이 아닌 whitespace로 구분 # 예 : plugins = (git zsh-autosuggestion) plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
터미널을 재부팅하거나 아래의 코드를 입력하면 적용됨.
source ~/.zshrc
Folder colors are unreadable with default terminal theme.
아래처럼 bash 또는 zshrc 설정 때문에 폴더 명 뒤에 색이 덧칠되어 읽기 힘든 경우가 있다.
이런경우 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
LS_COLORS="ow=01;36;40" && export LS_COLORS
ow stands for 'other, writable', tw is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
 on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
그다음 터미널을 재시작하면 끝난다.
cd tab 후 뜬 폴더 리스트의 배경색 변경
위와 같이 cd tab을 입력하여 뜬 폴더 리스트가 배경색에 의해 알아볼 수 없다면 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}" autoload -Uz compinit compinit
keyBind
bindkey "\e[1;3D" backward-word # ⌥← bindkey "\e[1;3C" forward-word # ⌥→ bindkey "^[[1;9D" beginning-of-line # cmd+← bindkey "^[[1;9C" end-of-line # cmd+→
powerlevel10k 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
zsh 설치
zsh 설치
sudo apt install zsh
zsh를 기본 sh로 변경
sudo chsh -s $(which zsh)
터미널이 재시작 후
숫자키 2를 눌러 권장 설정으로 세팅한다.
oh-my-zsh 설치
oh-my-zsh 설치
curl, wget, fetch 중 한가지 방법으로 설치한다.
#curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #wget sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #fetch sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
자세한 부분은 아래 공식 문서 참고
테마변경
#zshrc 수정 vim ~/.zshrc #vim #zsh 내용의 ZSH_THEME 부분을 변경 ZSH_THEME='agnoster'
zsh-autosuggestion설치
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"my-zsh/custom}/plugins/zsh-autosuggestions
syntax highlight 설치 zsh-syntax-highlighting
mkdir ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git cd ~
zsh-syntax-highlighting을 못찾는 경우
.zshrc 에 플러그인 추가
vim ~/.zshrc # zshrc 내용 중 plugins 부분에 zsh-syntax-highlighting추가 # 추가는 ','로 구분하는 것이 아닌 whitespace로 구분 # 예 : plugins = (git zsh-autosuggestion) plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
터미널을 재부팅하거나 아래의 코드를 입력하면 적용됨.
source ~/.zshrc
Folder colors are unreadable with default terminal theme.
아래처럼 bash 또는 zshrc 설정 때문에 폴더 명 뒤에 색이 덧칠되어 읽기 힘든 경우가 있다.
이런경우 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
LS_COLORS="ow=01;36;40" && export LS_COLORS
ow stands for 'other, writable', tw is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
 on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
그다음 터미널을 재시작하면 끝난다.
cd tab 후 뜬 폴더 리스트의 배경색 변경
위와 같이 cd tab을 입력하여 뜬 폴더 리스트가 배경색에 의해 알아볼 수 없다면 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}" autoload -Uz compinit compinit
keyBind
bindkey "\e[1;3D" backward-word # ⌥← bindkey "\e[1;3C" forward-word # ⌥→ bindkey "^[[1;9D" beginning-of-line # cmd+← bindkey "^[[1;9C" end-of-line # cmd+→
powerlevel10k 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
zsh 설치
zsh 설치
sudo apt install zsh
zsh를 기본 sh로 변경
sudo chsh -s $(which zsh)
터미널이 재시작 후
숫자키 2를 눌러 권장 설정으로 세팅한다.
oh-my-zsh 설치
oh-my-zsh 설치
curl, wget, fetch 중 한가지 방법으로 설치한다.
#curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #wget sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #fetch sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
자세한 부분은 아래 공식 문서 참고
테마변경
#zshrc 수정 vim ~/.zshrc #vim #zsh 내용의 ZSH_THEME 부분을 변경 ZSH_THEME='agnoster'
zsh-autosuggestion설치
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"my-zsh/custom}/plugins/zsh-autosuggestions
syntax highlight 설치 zsh-syntax-highlighting
mkdir ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git cd ~
zsh-syntax-highlighting을 못찾는 경우
.zshrc 에 플러그인 추가
vim ~/.zshrc # zshrc 내용 중 plugins 부분에 zsh-syntax-highlighting추가 # 추가는 ','로 구분하는 것이 아닌 whitespace로 구분 # 예 : plugins = (git zsh-autosuggestion) plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
터미널을 재부팅하거나 아래의 코드를 입력하면 적용됨.
source ~/.zshrc
Folder colors are unreadable with default terminal theme.
아래처럼 bash 또는 zshrc 설정 때문에 폴더 명 뒤에 색이 덧칠되어 읽기 힘든 경우가 있다.
이런경우 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
LS_COLORS="ow=01;36;40" && export LS_COLORS
ow stands for 'other, writable', tw is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
 on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
그다음 터미널을 재시작하면 끝난다.
cd tab 후 뜬 폴더 리스트의 배경색 변경
위와 같이 cd tab을 입력하여 뜬 폴더 리스트가 배경색에 의해 알아볼 수 없다면 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}" autoload -Uz compinit compinit
keyBind
bindkey "\e[1;3D" backward-word # ⌥← bindkey "\e[1;3C" forward-word # ⌥→ bindkey "^[[1;9D" beginning-of-line # cmd+← bindkey "^[[1;9C" end-of-line # cmd+→
powerlevel10k 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
zsh 설치
zsh 설치
sudo apt install zsh
zsh를 기본 sh로 변경
sudo chsh -s $(which zsh)
터미널이 재시작 후
숫자키 2를 눌러 권장 설정으로 세팅한다.
oh-my-zsh 설치
oh-my-zsh 설치
curl, wget, fetch 중 한가지 방법으로 설치한다.
#curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #wget sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #fetch sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
자세한 부분은 아래 공식 문서 참고
테마변경
#zshrc 수정 vim ~/.zshrc #vim #zsh 내용의 ZSH_THEME 부분을 변경 ZSH_THEME='agnoster'
zsh-autosuggestion설치
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"my-zsh/custom}/plugins/zsh-autosuggestions
syntax highlight 설치 zsh-syntax-highlighting
mkdir ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git cd ~
zsh-syntax-highlighting을 못찾는 경우
.zshrc 에 플러그인 추가
vim ~/.zshrc # zshrc 내용 중 plugins 부분에 zsh-syntax-highlighting추가 # 추가는 ','로 구분하는 것이 아닌 whitespace로 구분 # 예 : plugins = (git zsh-autosuggestion) plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
터미널을 재부팅하거나 아래의 코드를 입력하면 적용됨.
source ~/.zshrc
Folder colors are unreadable with default terminal theme.
아래처럼 bash 또는 zshrc 설정 때문에 폴더 명 뒤에 색이 덧칠되어 읽기 힘든 경우가 있다.
이런경우 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
LS_COLORS="ow=01;36;40" && export LS_COLORS
ow stands for 'other, writable', tw is 'sticky, writable' (the other condition that has a green background). I found these values by examining the contents of $LS_COLORS
 on my system, looking for values with a background color of 42 (green). The color code has 3 columns (unused columns are left out):
bold;font-color;bg-color
그다음 터미널을 재시작하면 끝난다.
cd tab 후 뜬 폴더 리스트의 배경색 변경
위와 같이 cd tab을 입력하여 뜬 폴더 리스트가 배경색에 의해 알아볼 수 없다면 ~/.zshrc 또는 ~/.bashrc 에서 맨하단에 아래의 코드를 추가시켜준다.
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}" autoload -Uz compinit compinit
keyBind
bindkey "\e[1;3D" backward-word # ⌥← bindkey "\e[1;3C" forward-word # ⌥→ bindkey "^[[1;9D" beginning-of-line # cmd+← bindkey "^[[1;9C" end-of-line # cmd+→
powerlevel10k 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
zsh 설치
zsh 설치
sudo apt install zsh
zsh를 기본 sh로 변경
sudo chsh -s $(which zsh)
터미널이 재시작 후
숫자키 2를 눌러 권장 설정으로 세팅한다.
oh-my-zsh 설치
oh-my-zsh 설치
curl, wget, fetch 중 한가지 방법으로 설치한다.
#curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #wget sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #fetch sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
자세한 부분은 아래 공식 문서 참고
테마변경
#zshrc 수정 vim ~/.zshrc #vim #zsh 내용의 ZSH_THEME 부분을 변경 ZSH_THEME='agnoster'
zsh-autosuggestion설치
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"my-zsh/custom}/plugins/zsh-autosuggestions
syntax highlight 설치 zsh-syntax-highlighting
mkdir ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git cd ~
zsh-syntax-highlighting을 못찾는 경우
.zshrc 에 플러그인 추가
vim ~/.zshrc # zshrc 내용 중 plugins 부분에 zsh-syntax-highlighting추가 # 추가는 ','로 구분하는 것이 아닌 whitespace로 구분 # 예 : plugins = (git zsh-autosuggestion) plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
터미널을 재부팅하거나 아래의 코드를 입력하면 적용됨.
source ~/.zshrc