summaryrefslogtreecommitdiff
path: root/.zlogin
blob: 7e4c830bb4459e5ed3c0b88af47e73a83cd4d4bf (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

#for _col in {1..$COLUMNS} ; do echo -n "_" ; done ;\ echo;\
if cmd_exists when
then

	LATEST=`stat 2>&- --printf="%z\n" ~/.when/.today | cut -d' ' -f1`
	TODAY=`date "+%Y-%m-%d"`	

	if [ "$TODAY" != "$LATEST" ]
	then
		when w --calendar=~/.when/birthdays | tail -n+3 > ~/.when/.today
	fi

	if [ -s ~/.when/.today ]
	then
		preprint "événements" $color[bold] ; echo
		cat ~/.when/.today
	fi
fi
#cmd_exists calendar && calendar -A0 | sed "s/\(\*.*\)/\1/;s/\(\*.*\*\)/\1/" ;\

cmd_exists screen && [ "$(find /var/run/screen/S-$USER/ ! -type d | wc -l)" -gt 0 ] &&\
preprint "screen" $color[bold] && echo &&\
screen -list

#preprint "calendrier" $color[bold] ; echo
#[ -x ~/sbin//calendrier ] && ~/sbin/calendrier

#cmd_exists remind && remind -n

cmd_exists keychain && eval $(keychain --eval --inherit any-once --quick)
#keychain id_dsa 593F1F92

chpwd
true