-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_install.sh
executable file
·68 lines (49 loc) · 1.51 KB
/
user_install.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
#!/bin/bash
echo -e "\n\tfinalizing new user environment\n"
set -ex
cd $HOME
git clone https://github.com/pdicerbo/MyDotFiles.git
echo -e "\n\tbase utils files adopted\n"
cd MyDotFiles
cp gitconfig $HOME/.gitconfig
mkdir -p $HOME/.scripts
cp scripts/* $HOME/.scripts/
export PATH=$PATH:$HOME/.scripts
if [[ $# -eq 1 ]] ; then
rm -f $HOME/.scripts/change_username
fi
cd Xstuff
cp bashrc $HOME/.bashrc
cp bash_profile $HOME/.bash_profile
cp xinitrc $HOME/.xinitrc
cp Xresources $HOME/.Xresources
echo -e "\n\tadopting awesome and conky cfg files..\n"
mkdir -p $HOME/.config/
cp -r awesome $HOME/.config/
cp picom.conf $HOME/.config/
cp -r conky $HOME/.config/conky_cfg
cp -r archey4 $HOME/.config/
if [[ $# -eq 1 ]] ; then
cd $HOME
rm -rf MyDotFiles
exit 0 # the final user is expected to install the other packages
fi
echo -e "\n\tinstalling Visual Studio Code...\n"
vscode_upgrade
echo -e "\n\tinstalling Google Chrome...\n"
gchrome_upgrade
echo -e "\n\tinstalling Archey...\n"
archey4_upgrade
echo -e "\n\tinstalling some urxvt extensions..."
cd $HOME
mkdir -p $HOME/.urxvt/ext/
git clone https://github.com/simmel/urxvt-resize-font.git
mv urxvt-resize-font/resize-font $HOME/.urxvt/ext/
LINK_FOLDER_ROOT=$HOME
echo -e "\n\tcreating link to shared folder into $LINK_FOLDER_ROOT\n"
mkdir -p $LINK_FOLDER_ROOT
ln -s /media/sf_shared $LINK_FOLDER_ROOT/shared
echo -e "\n\tcleaning directories and exit\n"
cd $HOME
rm -rf MyDotFiles urxvt-resize-font
echo -e "\n\tremember to remove the original repo folder!\n"