initial checkin
[zsh-lovers.git] / zsh_people / bruno_bonfils / rc / misc.rc
1 # -*- shell-script -*-
2
3 periodic () {
4  rehash
5 }
6
7 export PERIOD=300
8
9 ###
10 # Mail
11
12 if [[ -x `which fetchmail` && ! -f ~/.fetchmail.pid && ! -f /tmp/.${USER}.fetchmailnoask ]]
13 then
14         local ans
15         echo -n "Start fetchmail ? [y/n] "
16         read -q ans
17         if [[ $ans == "y" ]]
18         then
19                 fetchmail
20         else
21                 echo -n "Ask again ? [y/n] "
22                 read -q ans
23                 if [[ $ans == "n" ]]
24                 then
25                         # I use /tmp since it's purge every reboot
26                         echo "" >| /tmp/.${USER}.fetchmailnoask
27                 fi
28         fi
29 fi
30
31
32 ###
33 # Zftp
34 #
35
36 # load zftp module
37 autoload -U zfinit
38 zfinit
39
40 # email address for anonymous ftp
41 export EMAIL_ADDR=enjoy.zsh@foo.bar