Ubuntu 또는 MacOS zsh 설정 - jinwooklim/my-exp GitHub Wiki
zsh 설치
sudo apt-get install zsh
oh-my-zsh 설치
curl 또는 wget으로 설치
# curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# wget
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
zsh 테마 변경 및 폰트 변경
zsh 테마 변경
vim ~/.zshrc
...
...
ZSH_THEME="agnoster"
Terminal 폰트 변경
네이버 d2codning 폰트 release 받고 설치 및 터미널에 등록
https://github.com/naver/d2codingfont
https://github.com/naver/d2codingfont/releases/tag/VER1.3.2
플러그인 설치
zsh-syntax-highlighting 설치
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
zsh-autosuggestions 설치
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
plugin에 플러그인 등록
vim ~/.zshrc
...
...
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
컴퓨터이름 제거
vim ~/.zshrc
...
...
# Remove Computer name
prompt_context() {
if [ "$USER" != "$DEFAULT_USER" ](/jinwooklim/my-exp/wiki/|--n-"$SSH_CLIENT"-); then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
ubuntu "nautilus" 을 "open" 으로 치환
vim ~/.zshrc
...
...
# alias open = nautilus
alias open="nautilus"
miniconda zsh 등록
vim ~/.zshrc
...
...
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/mobis/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/mobis/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/mobis/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/mobis/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<