sudo apt install zsh
chsh -s `which zsh`
chsh
로 기본 셸 변경 불가시 which zsh
의 값을 /etc/shells
에 추가
ZSH_THEME="agnoster"
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
# .zshrc plugins=(zsh-autosuggestions)
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# .zshrc plugins=( [plugins...] zsh-syntax-highlighting)
- npm run 스크립트 Auto Completion
git clone https://github.com/lukechilds/zsh-better-npm-completion ~/.oh-my-zsh/custom/plugins/zsh-better-npm-completion
# ./zshrc plugins=( [...plugins] zsh-better-npm-completion )
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# update .zshrc
Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.
좀 더 유용한 zsh 테마
- 언제가부터 지원과 신규 기능이 안올라온다.
wget http://raw.github.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme && mkdir $ZSH_CUSTOM/themes && mv bullet-train.zsh-theme $ZSH_CUSTOM/themes/
# .zshrc ZSH_THEME="bullet-train"
.zshrc
에 아래 내용을 추가하면 hostname
을 제거할 수 있다.
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
$ git clone git://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze
$ ~/.scm_breeze/install.sh
$ source ~/.bashrc