-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·37 lines (31 loc) · 1.04 KB
/
install.sh
File metadata and controls
executable file
·37 lines (31 loc) · 1.04 KB
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
#!/bin/bash
# Get directory of script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Check if vim is installed
if [ -z $(which vim) ] ; then
echo '[*] install vim first before running this script!'
echo '[*] apt-get install vim'
exit 1
fi
# Check if git is installed
if [ -z $(which git) ] ; then
echo '[*] install git first before running this script!'
echo '[*] apt-get install git'
exit 1
fi
# Check if pip is installed
if [ -z $(which pip3) ] ; then
echo '[*] install pip first before running this script!'
echo '[*] apt-get install python3-pip'
exit 1
fi
# Installing flake8
pip3 install flake8 jedi
# Mirror git clone to folder
echo '[*] Mirroring vim configuration from '"$DIR"' to '"$HOME"'/ ...'
rsync -rtv --exclude-from 'rsync-exclude.txt' $DIR/. $HOME/
echo '[*] Excluded files:'
cat $DIR/rsync-exclude.txt
echo '[*] Mirror completed. You may now delete this directory if required'
echo '[*] cd .. && rm '$(pwd)
echo '[*] You may leave the install.sh file here if you wish to re-sync in future.'