zsh 的项目缓慢

问题描述 投票:0回答:0

我已经尝试了很多事情,包括删除 asl 日志,在登录 /bin/bash -il 上发出命令,注释掉我的 zshrc 的部分内容或延迟加载它们,但我仍然无法在 iterm 中打开一个新选项卡。当从 pgrep -> npm ->zsh -> sh 开始打开时,我看到选项卡上有很多东西闪烁,只有在 zsh 闪烁后我的终端才会打开。我该怎么做才能更改此配置?我的 zshrc 中没有任何内容表明 npm 正在启动,所以我很困惑为什么我会看到它(和 pgrep)。下面的 zshrc

    export PATH=$PATH:$HOME/.config/nvim/
export PATH=$PATH:$HOME/go
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh

ZSH_THEME="robbyrussell"
CASE_SENSITIVE="true"

# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
#
export NVM_LAZY_LOAD=true
export NVM_COMPLETION=true
plugins=(zsh-nvm git zsh-autosuggestions fasd)
eval "$(fasd --init auto)"
 [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
. ~/.ghcup/env

我跑的时候 ` 外壳=${1-$SHELL} 对于我在 $(seq 1 10);做 /usr/bin/time $shell -i -c 退出;完成

` 我得到大约 ~0.5s,第一个是 ~0.8。但是,当我运行 /bin/zsh -il 时,大约需要 2-3 秒。除了在选项卡名称中看到这种奇怪的模式闪烁之外,我无法找出原因。有人遇到过类似情况吗?

oh-my-zsh iterm2
© www.soinside.com 2019 - 2024. All rights reserved.