[Window] Set zsh(oh-my-zsh) on Git Bash
Download zsh
Download the compressed file via the download link.
Insert zsh settings folder
Disassemble the downloaded zst compressed file.
Release the tar compressed file in the decompressed folder.
Overwrite the etc, user folder in the decompressed folder to the Git installation folder (C:\Program Files\Git).

git_zsh.png
Run zsh
1
zshThere are a few questions for setting up the basics. Proceed with a careful reading.

설정 완료 후 화면
oh-my-zsh installation
1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Set to go to zsh when running Git Bash
~/.bashrc file modification
1
2
vi ~/.bashrc
Plain Text
1
2
3
4
# Launch Zsh
if [ -t 1 ]; then
exec zsh
fiApply modifications
1
2
source ~/.bashrc
Restart Git Bash
Theme Settings
Check the link for the theme type
1
vi ~/.zshrcPlain Text
1
2
ZSH_THEME="agnoster"

Apply modifications
1
source ~/.zshrc Delete the user name that appears at the prompt
1
vi ~/.zshrcPlain Text
1
2
3
4
5
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}1
source ~/.zshrc 
Before and after application
Reference
https://wayhome25.github.io/etc/2017/03/12/zsh-alias
https://cyanlh.github.io/Dev-ETC/windows10에서-powershell과-git-bash에-zsh-설치하기
https://doda.tistory.com/entry/Windows-git-bash%EC%97%90-zsh-oh-my-zsh

민갤
Back-End Developer
백엔드 개발자입니다.

[Kotlin] Korean Coding Test - Programmers - Desktop Organization
Programmer's Coding Test Desktop Organization Problem
Kotlin

[Git] To modify a specific commit
To modify a specific commit
ETC