-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux-terminal.sh
executable file
·125 lines (108 loc) · 2.83 KB
/
linux-terminal.sh
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/bin/sh
#-------------------------------------------------------------------------------
# Define required Zep version:
ZEP_VER=2.6
# Iff installed at nonstandard location, define installation location here:
#ZEP_DIR=/opt/zep
#-------------------------------------------------------------------------------
USE=`echo use-zep-[0-9]*`
if [ -e $USE ]; then
USE=`basename $USE .txt`
VER=`echo $USE | cut -d- -f3`
if [ -n "$VER" ]; then
ZEP_VER=$VER
fi
fi
DONE=""
if [ -n "$ZEP_DIR" ]; then
INITIAL_ZEP_DIR=$ZEP_DIR
if [ -x $ZEP_DIR/$ZEP_VER/bin/zep ]; then
DONE=1
fi
fi
if [ ! "$DONE" ]; then
ZEP_DIR=/usr/local/lib/zep
if [ -x $ZEP_DIR/$ZEP_VER/bin/zep ]; then
DONE=1
fi
fi
if [ ! "$DONE" ]; then
ZEP_DIR=/usr/lib/zep
if [ -x $ZEP_DIR/$ZEP_VER/bin/zep ]; then
DONE=1
fi
fi
if [ ! "$DONE" ]; then
PROGNAME=`basename $0`
ZEP_DIR=
echo Unable to locate Zep $ZEP_VER on your system. Tested following folders:
if [ -n "$INITIAL_ZEP_DIR" ]; then
echo " $INITIAL_ZEP_DIR"
fi
echo " /usr/local/lib/zep"
echo " /usr/lib/zep"
echo ""
echo "Please (ask your system administrator to) install Zep $ZEP_VER into any"
echo "of these locations or, in case you already have installed it (or want"
echo "to install it) at a different location, then define the installation"
echo "location in $PROGNAME."
echo ""
echo "For example if you have installed Zep $ZEP_VER at /home/john/mystuff/zep,"
echo "then edit $PROGNAME and change this line:"
echo " #ZEP_DIR=/opt/zep"
echo "to"
echo " ZEP_DIR=/home/john/mystuff/zep"
echo "and try again."
echo ""
echo "Hit <Enter> to coninue."
read x
exit
fi
terminal=`which gnome-terminal`
if [ -x "$terminal" ]; then
# echo Starting gnome-terminal
$terminal --geometry=100x30 --title="Zep Terminal"
exit
fi
terminal=`which mate-terminal`
if [ -x "$terminal" ]; then
# echo Starting mate-terminal
$terminal --geometry=100x30 --title="Zep Terminal"
exit
fi
terminal=`which xfce4-terminal`
if [ -x "$terminal" ]; then
# echo Starting xfce4-terminal
$terminal --geometry=100x30 --title="Zep Terminal"
exit
fi
terminal=`which konsole`
if [ -x "$terminal" ]; then
# echo Starting konsole
$terminal --geometry=100x30 --title="Zep Terminal"
exit
fi
terminal=`which lxterminal`
if [ -x "$terminal" ]; then
# echo Starting lxterminal
$terminal --geometry=100x30 --title="Zep Terminal"
exit
fi
terminal=`which rxvt-unicode`
if [ -x "$terminal" ]; then
# echo Starting rxvt-unicode
$terminal -geometry 100x30 -title "Zep Terminal" -bg lemonchiffon -fg black -sb &
exit
fi
terminal=`which rxvt`
if [ -x "$terminal" ]; then
# echo Starting rxvt
$terminal -geometry 100x30 -title "Zep Terminal" -bg lemonchiffon -fg black -sb &
exit
fi
terminal=`which xterm`
if [ -x "$terminal" ]; then
# echo Starting xterm
$terminal -geometry 100x30 -title "Zep Terminal" -bg lemonchiffon -fg black -sb &
exit
fi