My zshrc is filled with export statements like this and as a result the export time becomes a bit long
zsh -i -c exit 0.82s user 0.44s system 105% cpu 1.196 total
whereas it's quite fast if i exlude the export statements
zsh -i -c exit 0.11s user 0.02s system 101% cpu 0.125 total
is there any way to reduce the time without excluding the export statements ?
export PATH=$PATH:/home/{{user}}/.gem/ruby/2.7.0/bin
export PATH=$PATH:~/.yarn/bin
export PATH=$PATH:/run/media/{{user}}/others/Programs/flutter/bin
export PATH=$PATH:/opt/proverif2.01
export PATH=$PATH:/opt/lampp
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# opam configuration
test -r /home/{{user}}/.opam/opam-init/init.zsh && . /home/{{user}}/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true