-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
39 lines (31 loc) · 1.07 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/zsh
autoload -U compinit zrecompile
_my_main () {
local zsh_cache zshrc_snipplet
setopt extended_glob
zsh_cache=${HOME}/.cache/zsh
if [ $UID -eq 0 ]; then
compinit
else
compinit -d $zsh_cache/zcomp-$HOST
for f in ~/.zshrc $zsh_cache/zcomp-$HOST; do
zrecompile -p $f && rm -f $f.zwc.old
done
fi
for zshrc_snipplet in ~/.config/zsh/[0-9][0-9][^.]#; do
START=$(date +%s.%N)
source $zshrc_snipplet
END=$(date +%s.%N)
DIFF=$(echo "$END - $START" | bc)
# echo $zshrc_snipplet $DIFF
done
}
_my_main
#source /home/aurel/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
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
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# NEAT Infra CLI
export NEAT_INFRA_PATH=/home/aurel/dev/neat/infra
source /home/aurel/dev/neat/infra/scripts/utils/infra-completion.zsh