[英]iTerm2 opens command response in vi like window
我安裝了 iTerm Build 3.3.9。 我已經使用以下插件和主題配置了oh-my-zsh
ZSH_THEME="powerlevel10k/powerlevel10k"
ZSH_DISABLE_COMPFIX="true"
plugins=(aws git colored-man-pages colorize github virtualenv pip python osx zsh-syntax-highlighting zsh-completions zsh-autosuggestions django npm zsh-interactive-cd zsh-navigation-tools)
現在有兩個問題我想解決
要解決第一個問題,請嘗試將zsh-syntax-highlighting
移至plugins
。 來自zsh-syntax-highlighting FAQ :
為什么
zsh-syntax-highlighting.zsh
必須放在.zshrc
文件的末尾?
zsh-syntax-highlighting.zsh
包裝 ZLE 小部件。 必須在創建所有自定義小部件之后(即,在所有zle -N
調用之后和運行compinit
)獲取它。 稍后創建的小部件將起作用,但不會更新語法突出顯示。
要解決第二個問題,請在~/.zshrc
末尾添加以下內容:
# Use `less` as pager in Zsh.
READNULLCMD=less
# Use `less` as pager in external commands.
export PAGER=less
# This affects every invocation of `less`.
#
# -i case-insensitive search unless search string contains uppercase letters
# -R color
# -F exit if there is less than one page of content
# -X keep content on screen after exit
# -M show more info at the bottom prompt line
# -x4 tabs are 4 instead of 8
export LESS=-iRFXMx4
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.