-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup
executable file
·47 lines (42 loc) · 979 Bytes
/
setup
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
#!/bin/bash
echo "The script requires sudo to copy global configuration files..."
while [ "$1" != "" ]; do
case $1 in
f | --fonts)
shift
bash ./install-terminus-font.sh # run installation script
;;
*)
;;
esac
shift
done
# Copy these files to homedir
echo -n "Copying files... "
cp -r .xinitrc \
.xsession \
.git/ \
.gitignore \
.vim/ \
.vimrc \
.config/ \
.inputrc \
.bash_profile \
.bashrc \
.Xresources \
bin/ \
$HOME
echo "Done!"
source $HOME/.bash_profile
touch $HOME/.bash_private
echo -n "Installing Xorg files... "
sudo mkdir -p /etc/X11/xorg.conf.d
sudo cp 00-keyboard.conf /etc/X11/xorg.conf.d/
echo "Done!"
echo -n "Running Vim Bundle... "
mkdir -p $HOME/.vim/bundle
if [ ! -d "$HOME/.vim/bundle/Vundle.vim" ]; then
git clone https://github.com/vundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi
vim +PluginInstall +qall
echo "Done!"