-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost_install.sh
More file actions
executable file
·56 lines (45 loc) · 941 Bytes
/
post_install.sh
File metadata and controls
executable file
·56 lines (45 loc) · 941 Bytes
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
#/bin/bash
## Some actions after installation of a apt distro
YES=
if [ "$1" = "-y" ]; then
shift
YES=1
fi
STEP () {
if [ -z "$YES" ]; then
read -p 'Do it? (Y/n) ' c
[ -z "$c" ] || [ "$c" = "Y" ] || [ "$c" = "y" ]
else
true
fi
}
set -v
cd ${HOME}
i3=0;
STEP Install git, vim, and other tools && {
apt-get install git vim bash-completion build-essential
}
STEP Install latex, xelatex && {
apt-get install latex xelatex
i3=1
}
STEP Install i3wm, i3blocks && {
apt-get install i3 i3blocks
i3=1
}
STEP Enable greek UTF-8 locale && {
sed -i -e 's/^# *\(el_GR.UTF-8\)$/\1/g' /etc/locale.gen
locale-gen
}
STEP Enable greek UTF-8 typing in shell && {
touch ~/.bashrc
sed -i -e '/^export LC_CTYPE=/d' ~/.bashrc
echo 'export LC_CTYPE=el_GR.UTF-8' '>>' ~/.bashrc
# Now you have to re-login to enable it
}
STEP Get config files && {
git clone https://github.com/xmrancho/dotfiles
if [ -z $i3 ]; then
rm -r .i3
fi
}