那些我希望在一开始使用 Zsh(oh-my-zsh) 时就知道的
Tofloor
poster avatar
lookfor
deepin
2020-10-06 19:00
Author
https://segmentfault.com/a/1190000002658335?utm_source=sf-related

  1. cat ~/.zshrc

  2. plugins=(git z zsh-autosuggestions vi-mode extract)

  3. # vi-mode 显示当前模式
  4. function zle-line-init zle-keymap-select {
  5.     RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
  6.     RPS2=$RPS1
  7.     zle reset-prompt
  8. }
  9. zle -N zle-line-init
  10. zle -N zle-keymap-select
Copy the Code




Reply Favorite View the author
All Replies
lookfor
deepin
2020-10-06 23:35
#1
类似360  软件小助手

Reply View the author