zsh
설치
- Arch Linux
- Debian
sudo pacman -S zsh
sudo apt install zsh
chsh -s $(which zsh)
Oh My Zsh
- Arch Linux
- Debian
sudo pacman -S curl git ttf-meslo-nerd
sudo apt install curl git
sudo mkdir -p /usr/share/fonts/NerdFonts
curl -sL https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Meslo.tar.xz \
| sudo tar -xvJf - -C /usr/share/fonts/NerdFonts \
&& sudo fc-cache -fv
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- https://github.com/zsh-users/zsh-completions
- https://github.com/zsh-users/zsh-syntax-highlighting
- https://github.com/zsh-users/zsh-autosuggestions
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)"