-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·45 lines (37 loc) · 1.51 KB
/
setup.sh
File metadata and controls
executable file
·45 lines (37 loc) · 1.51 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
# Basic setup of vim, git, tmux, Python, Pip, and venv
sudo apt-get install vim git tmux python3 python3-pip python3-venv python-dev python3-dev
# Set up Vundle. Note: This assumes that you just installed vim 8.0+
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Install Vundle packages
vim +PluginInstall +qall
# Install YouCompleteMe, via https://github.com/ycm-core/YouCompleteMe/wiki/Full-Installation-Guide
pip3 install --user setuptools
sudo apt-get install cmake
pushd ~
mkdir -p ycm_build
cd ycm_build
cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
cmake --build . --target ycm_core
cd ~/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog
rm -rf build/lib3
python3 setup.py build --build-base=build/3 --build-lib=build/lib3
popd
# Install gitpython and gitflow
pip3 install --user gitpython
# Wheel is required for termcolor, which is required for gitflow
pip3 install --user wheel
pip3 install --user termcolor
cp ./gitflow.py ~/.local/bin/gitflow
# Overwrite the vimrc, tmux config, and gitconfig.
cp ./vimrc ~/.vimrc
cp ./tmux.conf ~/.tmux.conf
cp ./tmux.reset.conf ~/.tmux.reset.conf
cp ./gitconfig ~/.gitconfig
# Put the local bin (including gitflow) in the path.
echo 'export PATH=$PATH:~/.local/bin' >> ~/.bashrc
# Add a couple convenience aliases to the bash_aliases file.
echo "alias ..='cd ..'" >> ~/.bash_aliases
echo "alias qgit=git" >> ~/.bash_aliases
echo "alias pip=pip3" >> ~/.bash_aliases
# Source the bashrc
source ~/.bashrc