-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zlogin
97 lines (90 loc) · 1.93 KB
/
.zlogin
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# ~/.zlogin
#
##echo -n ' .zlogin' 1>&2
#
# setup for modem
#
if [ x$TERM = xdialup ]; then
export TERM=vt100
export LESSCHARSET=japanese-sjis
/bin/stty pass8
/bin/stty rows 23
/bin/stty columns 80
alias rmail='mule -nw -e mh-rmail'
tele=y
else
tele=n
fi
[[ -n "$TMUX" ]] && stty erase
[[ "$TERM" =~ ^screen ]] && stty erase
if [ $OSTYPE = "linux-gnu" ]; then
export TERM=screen-256color
fi
##echo -n . 1>&2
#
# set display
#
#export CONSOLE=`~funa/bin/shell/ff -c | awk '/^funa/{print $3}'`
export CONSOLE=$HOST
export TITLE=$CONSOLE
#if [ x$DISPLAY = xunix:0.0 ]; then
#else
# export DISPLAY=$CONSOLE:0
#fi
##echo . 1>&2
#
# pyenv
# It is almost certainly better to add it to your profile / login shell only, and not your rc.
# Turn USE_PYENV ON if you want to use it.
USE_PYENV="OFF"
#USE_PYENV="ON"
if [ $USE_PYENV = "ON" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if _has pyenv; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# eval "$(pyenv init - zsh --no-rehash)"
# eval "$(pyenv virtualenv-init -)"
source $PYENV_ROOT/completions/pyenv.zsh
fi
fi
#
# start up
#
#if [ x$TTY = x/dev/ttyv0 -a $HOST != cosmos ]; then
if [ x$TTY = x/dev/ttyv0 -o x$TTY = x/dev/tty1 -o x$TTY = x/dev/ttyE0 -o x$TTY = x/dev/console ]; then
echo -n 'X-Window(Fvwm2/KDE3/No)?'
read tmp
case $tmp {
f)
ln -sf $HOME/.xinitrc.fvwm2 .xinitrc
ssh-agent xinit >&! $HOME/.xinitrc.err
;;
k)
ln -sf $HOME/.xinitrc.kde .xinitrc
ssh-agent xinit >&! $HOME/.xinitrc.err
;;
n)
ln -sf $HOME/.xinitrc.fvwm2 .xinitrc
return
;;
*)
ln -sf $HOME/.xinitrc.fvwm2 .xinitrc
ssh-agent xinit >&! $HOME/.xinitrc.err
# ssh-agent sh -c "ssh-add && exec xinit"
}
px|sed '/ps /d'
echo -n 'Logout ?'
read hogehoge
case $hogehoge {
n)
return
;;
*)
/bin/rm -rf ~/.trashcan/*(N) > /dev/null
/bin/rm -rf ~/.trashcan/.??*(N) > /dev/null
logout
}
fi