-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzshrc
43 lines (32 loc) · 1.1 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
40
41
42
43
#!/usr/bin/env zsh
# Runs in interactive session
. ~/.zsh/config
[[ -f ~/.localrc ]] && source ~/.localrc
if [[ ! $fpath = *$USER/.zsh/functions* ]];then
fpath=(~$USER/.zsh/functions ~$USER/.zsh/completions $fpath)
autoload ${fpath[1]}/*(:t) ${fpath[2]}/*(:t)
fi
for zshrc_file in ~/.zsh/init/S[0-9][0-9]*[^~] ; do
source $zshrc_file
done
[[ -e "~/.iterm2_shell_integration.zsh" ]] && . "~/.iterm2_shell_integration.zsh"
if [[ -n $DOTFILES_POSITION_KITTY ]]; then
unset DOTFILES_POSITION_KITTY
~/.scripts/position-me kitty
fi
if [[ -n $TIME_BEFORE_TE ]]; then
local after elapsed
if which gdate > /dev/null 2>&1; then
after=$(gdate +%s.%N)
else
after=$(date +%s.%N)
fi
(( elapsed = $after - $TIME_BEFORE_TE ))
unset TIME_BEFORE_TE
echo "Time to load: $elapsed"
fi
# Global aliases can mess up everything else, so they must be last
. ~/.zsh/aliases
if [[ $DOTFILES_OS == "mac" && -d ~/.rbenv && $(whence ruby) == "/usr/bin/ruby" ]]; then
echo "\e[33mRuby is resolving to $(which ruby) instead of ~/.rbenv/shims/ruby; maybe you should run zsh setup/packs/mac_setup install\e[0m"
fi