-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
40 lines (28 loc) · 947 Bytes
/
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
#!/bin/sh
set -ux
cd
if [ ! -d Local-Repo/dotserver ] ; then
git clone https://github.com/w4jcb/dotserver.git Local-Repo/dotserver
fi
cd Local-Repo/dotserver
DIR=${PWD} # folder this file is in
homedir=/home/${USER} #/home/user_name
# dotfiles directory
dotfiledir=${DIR}
# list of files/folders to symlink in ${homedir}
files="bash_aliases"
# change to the dotfiles directory
echo "Changing to the ${dotfiledir} directory"
cd ${dotfiledir}
echo "...done"
# create symlinks (will overwrite old dotfiles)
for file in ${files}; do
echo "Creating symlink to $file in home directory."
ln -sf ${dotfiledir}/.${file} ${homedir}/.${file}
done
# Install packages I can't live without. Just put them in the text file.
xargs -a packages.txt sudo apt install
# Install pip3 style packages I can't live without.
sudo pip3 install -r requirements.txt
# Install SNAP packages I can't live without.
xargs -a snaps.txt sudo snap install