summaryrefslogtreecommitdiff
path: root/01_Exports.zsh
blob: 5c2c2ac358efa9fd46de544be6d2e89ca164e9c8 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/zsh

export BC_ENV_ARGS="-q"
export EDITOR=${EDITOR:-vim}
export HISTFILE=".zsh/.history.zsh"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/libs
eval $(dircolors ~/.dir_colors 2>&-)
export PATH=$PATH:~/sbin:~/bin
export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig
export TIME_STYLE="+%Y-%b-%d %H:%M"
export TZ="Europe/Paris"
source $ZDOTDIR/.keychain
# Set locales only if they are undefined
export LC_ALL=${LC_ALL:-fr_FR.UTF-8}
export LC_MESSAGES=${LC_MESSAGES:-fr_FR}
export MANPATH=$MANPATH:~/man
export NULLCMD=cat
unset LANG # Unuseful

##
##  basic setup
##
LOGCHECK=13
WATCHFMT=$COLOR_BLUECLAIR"%n"$COLOR_END
WATCHFMT=$WATCHFMT" has "$COLOR_YELLOW"%a %l from %M"
WATCH=notme
WORDCHARS="*?-._[]~=&;!#$%^(){}<>"	# I suppressed the '/'

HISTFILE=$ZDOTDIR/.history
HISTSIZE=42000
SAVEHIST=42000

##
## Prompts
##
#  For more info on PROMPT expansion, see 'man zshmisc'
##

PS1_ROOT=${PS1_ROOT:-31}
if ( [ "$SSH_TTY" = "" ] )
then
	PS1_USER=${PS1_USER:-34}
else
	PS1_USER=${PS1_USER_SSH:-35}
fi

PS1="%{[%(!."$PS1_ROOT"."$PS1_USER")m%}%n%{[1;%(!."$PS1_ROOT"."$PS1_USER")m%}@%{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%m%{%} (%{%}%y%{%}) [%(!.%{["$PS1_ROOT"m%}%d%{%}.%{["$PS1_USER"m%}%(5~:.../:)%4~%{%})]"${LD_PRELOAD:t:s/lib//:r}" %h%{[%(!."$PS1_ROOT";1."$PS1_USER")m%}#%{%} "

RPS1="%(?;;%{%}%?%{%}) %{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%D{%a%d%b|%H:%M'%S}%{%}"

PS2="%{%}%B%_%b%{%}%B>%b%{%} "

SPROMPT="zsh: %{%}%B«%R»%b%{%} ? Ce ne serait pas plutôt %{%}%B«%r»%b%{%} ? [nyae] "

##
# PS3="?# "
# 
# PS4="+%N:%i> "
##


#TIMEFMT="\`%J': %U user %S system %*E total (%P cpu)"