File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env zsh
2
+ # vim:syntax=zsh
3
+ # vim:filetype=zsh
1
4
# echo 'zlogin' $0 # Debug
5
+
6
+ # Execute code in the background to not affect the current session
7
+ (
8
+ # <https://github.com/zimfw/zimfw/blob/master/login_init.zsh>
9
+ setopt LOCAL_OPTIONS EXTENDED_GLOB
10
+ autoload -U zrecompile
11
+ local ZSHCONFIG=~ /.zsh
12
+
13
+ # Compile zcompdump, if modified, to increase startup speed.
14
+ zcompdump=" ${ZDOTDIR:- $HOME } /.zcompdump"
15
+ if [[ -s " $zcompdump " && (! -s " ${zcompdump} .zwc" || " $zcompdump " -nt " ${zcompdump} .zwc" ) ]]; then
16
+ zrecompile -pq " $zcompdump "
17
+ fi
18
+ # zcompile .zshrc
19
+ zrecompile -pq ${ZDOTDIR:- ${HOME} } /.zshrc
20
+ zrecompile -pq ${ZDOTDIR:- ${HOME} } /.zprofile
21
+ zrecompile -pq ${ZDOTDIR:- ${HOME} } /.zshenv
22
+ # recompile all zsh or sh
23
+ for f in $ZSHCONFIG /** /* .* sh
24
+ do
25
+ zrecompile -pq $f
26
+ done
27
+ ) & !
You can’t perform that action at this time.
0 commit comments