-
Notifications
You must be signed in to change notification settings - Fork 0
/
initScript.sh
executable file
·84 lines (71 loc) · 2.34 KB
/
initScript.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Change default language to English
sudo update-locale LANG=en_US.UTF-8 LANGUAGE=en_US:en
cd
# Install hub for git
git clone https://github.com/github/hub.git
cd hub
sudo apt-get install -y rake
sudo rake install prefix=/opt/local
sudo apt-get install -y rbenv curl
# Personal profile
cd
git clone https://github.com/miludmann/my-profile .my-profile
cat .bashrc .my-profile/.bashrc > .bashrc_tmp
rm -f .bashrc
mv .bashrc_tmp .bashrc
ln -s .my-profile/.aliases
ln -s .my-profile/.gitconfig
ln -s .my-profile/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
sudo apt-get install -y zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
ln -s .my-profile/.zshrc
source .zshrc
chsh -s /bin/zsh
# Custom VIM
cd
git clone https://github.com/miludmann/my-vim ./my-vim
ln -s .my-vim .vim
cd .vim
git submodule update --init --recursive
cd
ln -s .vim/.vimrc
ln -s .vim/solarize.sh
# Install YCM with clang
sudo apt-get install -y build-essential cmake
sudo apt-get install -y python-dev
# Append repositories to sources.list
sudo sh -c 'echo "
# Repositories to get latest clang library for YouCompleteMe in Vim
deb http://llvm.org/apt/precise/ llvm-toolchain-precise main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise main
deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main" >> /etc/apt/sources.list'
# Add the following in your /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y libclang-3.5-dev --force-yes
sudo ln -s /usr/lib/llvm-3.5/lib/libclang.so /usr/lib/
cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer --system-libclang
# Colormake
sudo apt-get install -y colormake
# Htop
sudo apt-get install -y htop
# Compile latest VIM
sudo apt-get install -y ncurses-dev
sudo apt-get install -y python2.7-dev
sudo apt-get install -y mercurial
hg clone https://vim.googlecode.com/hg/ vim
cd vim
hg pull
hg update default
./configure -prefix="/opt/local" --enable-gui=auto --enable-cscope --enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config --enable-sniff --enable-luainterp=yes --enable-rubyinterp=yes --with-features=huge
make -j2
sudo make install
cd
source .zshrc
sudo apt-get install -y automake
sudo apt-get install -y autoconf
sudo apt-get install -y libtool
mkdir -p dev
sudo apt-get install -y tig
sudo apt-get install -y colortail