-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·64 lines (52 loc) · 1.59 KB
/
install.sh
File metadata and controls
executable file
·64 lines (52 loc) · 1.59 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
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
#!/bin/sh
# Set cwd to location of script
cd $(dirname ${BASH_SOURCE[0]} )
BASE=$PWD
sudo true
cd ~/
HOME_FILES='.bashrc .bashrc_buildenv .bash_aliases .completion .conkyrc .gitconfig .vimrc .astylerc .xsessionrc'
for f in $HOME_FILES; do
echo Copying $BASE/$f to .
#If not a symlink
if [ ! -L $f ]; then
cp -vs --suffix=.bak $BASE/$f .
fi
done
cp -vs --suffix=.bak $BASE/.xsessionrc .Xresources
cp -vs --suffix=.bak $BASE/.ssh/config .ssh/
sudo apt-get install -y vim git subversion exuberant-ctags cscope
echo Copying .vim directory
# If not a symlink and directory exists
if [ ! -L .vim ] && [ -d .vim ]; then
mv -v .vim .vim.bak
fi
# If directory doesnt exist
if [ ! -d .vim ]; then
ln -vs $BASE/.vim .vim
fi
# Configure vim with git ignore file
git config --global core.excludesfile $BASE/C.gitignore
sudo apt-get install -y ccache
# If not a symlink
[ ! -L /usr/lib/ccache/arm-arago-linux-gnueabi-gcc ] && (
cd /usr/lib/ccache/
sudo ln -s ../../bin/ccache arm-arago-linux-gnueabi-g++
sudo ln -s ../../bin/ccache arm-arago-linux-gnueabi-gcc
sudo ln -s ../../bin/ccache arm-arago-linux-gnueabi-cpp
sudo ln -s ../../bin/ccache arm-angstrom-linux-gnueabi-cpp
sudo ln -s ../../bin/ccache arm-angstrom-linux-gnueabi-gcc
sudo ln -s ../../bin/ccache arm-angstrom-linux-gnueabi-g++
)
cd $BASE
git submodule update --init --recursive
# Install VUNDLE plugins
vim -i NONE -c PluginInstall -c qall
sudo apt-get install -y build-essential cmake python-dev shellcheck
(
cd .vim/bundle/YouCompleteMe
./install.sh --clang-completer
)
(
cd powerline-shell/
./install_powerline.sh
)