🍄Zsh

zsh

  • bash보다 편의기능들이 많이 있다.

  • oh-my-zsh를 이용하면 git 상태를 프롬프트에 간편하게 보여줄 수 있다.

oh-my-zsh 세팅

Powerlevel10k theme

omz에서 복붙할 때 back slash가 붙는 것을 끄고 싶을 때

vim $ZSH/lib/misc.zsh
--- a/lib/misc.zsh
+++ b/lib/misc.zsh
@@ -5,11 +5,11 @@ if [[ $ZSH_VERSION != 5.1.1 ]]; then
   for d in $fpath; do
        if [[ -e "$d/url-quote-magic" ]]; then
                if is-at-least 5.1; then
-                       autoload -Uz bracketed-paste-magic
-                       zle -N bracketed-paste bracketed-paste-magic
+                       # autoload -Uz bracketed-paste-magic
+                       # zle -N bracketed-paste bracketed-paste-magic
                fi
-               autoload -Uz url-quote-magic
-               zle -N self-insert url-quote-magic
+               # autoload -Uz url-quote-magic
+               # zle -N self-insert url-quote-magic
       break
        fi
   done

그리고 터미널 재시작