Skip to content

Instantly share code, notes, and snippets.

@partrita
Last active March 23, 2021 11:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save partrita/fe59a6dbfe16d09a16f49e1ee0fa5dc1 to your computer and use it in GitHub Desktop.
Save partrita/fe59a6dbfe16d09a16f49e1ee0fa5dc1 to your computer and use it in GitHub Desktop.
personal set up of zsh.

0. pre-required

bash shell

1. install zsh

The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements

sudo apt install zsh -y

2. install oh-my-zsh

Oh My Zsh will not make you a 10x developer...but you may feel like one.

Oh My Zsh is installed by running one of the following commands in your terminal.

sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

3. install starship

startship is minimal, blazing-fast, and infinitely customizable prompt for any shell!

curl -fsSL https://starship.rs/install.sh | bash

Add the following to the end of ~/.zshrc:

# ~/.zshrc
eval "$(starship init zsh)"

4. install zsh Plugin

4.1. syntax highlighting Plugin

linux 콘솔에서 사용가능한 대부분의 명령에 대한 highlighting 및 옵션 선택 기능 제공

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

in ~/.zshrc file

#~/.zshrc의 plugins 항목에 아래와 같이 추가
plugins=(
        git
        zsh-syntax-highlighting
)

source $ZSH/oh-my-zsh.sh

4.2. zsh-autosuggestions

Fish-like fast/unobtrusive autosuggestions for zsh.

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

in ~/.zshrc file

#~/.zshrc의 plugins 항목에 아래와 같이 추가
plugins=(
        git
        zsh-autosuggestions
        zsh-syntax-highlighting
)

source $ZSH/oh-my-zsh.sh

5. Snazzy color scheme

Elegant color theme with bright colors. For the hyper terminal

5.1. Related links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment