본문으로 건너뛰기

zsh

설치

sudo pacman -S zsh
chsh -s $(which zsh)

Oh My Zsh

sudo pacman -S curl git ttf-meslo-nerd
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-completions.git \
${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions \
&& git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting \
&& git clone https://github.com/zsh-users/zsh-autosuggestions \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

starship

curl -sS https://starship.rs/install.sh | sh

.zshrc

~/.zshrc
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"

zstyle '"':omz:update'"' mode auto
zstyle '"':omz:update'"' frequency 13 # in days

DISABLE_UNTRACKED_FILES_DIRTY="true"

plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
fzf
ssh-agent
)

fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
source $ZSH/oh-my-zsh.sh

is_installed() {
[ -n "$(command -v "$1" 2>/dev/null)" ]
}

######################
# User configuration #
######################

export PATH=$PATH:$HOME/.local/bin

# 마지막 줄
eval "$(starship init zsh)"