forked from sdeframond/zshrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
34 lines (30 loc) · 874 Bytes
/
.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
#!/bin/zsh
## zsh rc file made by paradoxx.zero
## Thanks to all the people which made their zshrc public
## Loading zsh configurations from ~/.zsh.d directory
if [[ "$TERM" == "dumb" ]]
# Dumb terminal like emacs tramp
then
unsetopt zle
unsetopt prompt_cr
unsetopt prompt_subst
unfunction precmd
unfunction preexec
PS1='$ '
else
if [[ -z $ZDOTDIR ]]; then
export ZDOTDIR=$HOME
fi
setopt extendedglob
for file in $ZDOTDIR/.zsh.d/*(.);
do
# echo " `basename $file` ... \c"
local t=$(date +%s%N)
source $file
# echo "[" $(( ($(date +%s%N) - $t) / 1000000)) "ms ]"
done
__motd
export REPORTTIME=1
export TIMEFMT="
${blue_}Total: ${blue__}%*E) ${magenta_}User: ${magenta__}%*U) ${yellow_}Kernel: ${yellow__}%*S) ${green_}System: ${green__}%P)$____"
fi