mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
perf(zsh): Load time decreased from 350ms to 110ms
- Read .profile in ~/.zshenv: ensuring non-login & non-interactive shell gets env set - Comments on every zsh and zinit config - Async load Zinit plugins - Remove unnecessary plugins - Create completion dumpfile once a day max
This commit is contained in:
10
common/.zshenv
Normal file
10
common/.zshenv
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# https://blog.patshead.com/2011/04/improve-your-oh-my-zsh-startup-time-maybe.html
|
||||
skip_global_compinit=1
|
||||
|
||||
# https://github.com/sorin-ionescu/prezto/blob/master/runcoms/zshenv
|
||||
# Ensure that a non-login, non-interactive shell has a defined environment.
|
||||
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.profile" ]]; then
|
||||
source "${ZDOTDIR:-$HOME}/.profile"
|
||||
fi
|
||||
Reference in New Issue
Block a user