-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
77 lines (66 loc) · 2.13 KB
/
makefile
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
install: install-prereqs install-git install-vim setup-python \
install-tmux install-zsh get-submodules install-ycm install-fonts \
update-bashrc update-sh
install-prereqs:
sudo apt-get -y install openssh-server
sudo apt-get -y install silversearcher-ag
install-git:
sudo apt-get -y install git
rm -rf ~/.gitconfig
ln -s ~/.dotfiles/git/gitconfig ~/.gitconfig
install-vim:
mkdir -p ~/.olddots
if [ -d "~/.vim" ]; then \
mv ~/.vim ~/.olddots/.vim; \
fi
if [ -f "~/.vimrc" ]; then \
mv ~/.vimrc ~/.olddots/.vimrc; \
fi
ln -s ~/.dotfiles/vim ~/.vim
ln -s ~/.dotfiles/vim/.vimrc ~/.vimrc
setup-python:
sudo apt-get -y install python-dev
sudo apt-get -y install python-pip
sudo pip install virtualenvwrapper
sudo pip install flake8
sudo apt-get -y install ipython
install-tmux:
sudo apt-get -y install tmux
ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
get-submodules:
cd ~/.dotfiles && \
git submodule update --init
install-zsh: get-submodules
sudo apt-get -y install zsh
ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
ln -s ~/.dotfiles/zsh/oh-my-zsh ~/.oh-my-zsh
# if [ -f "~/.oh-my-zsh/themes/cameron.zsh-theme" ]; then \
# mv ~/.oh-my-zsh/themes/cameron.zsh-theme ~/.olddots/cameron.zsh-theme; \
# fi
# ln -s ~/.dotfiles/zsh/cameron.zsh-theme ~/.oh-my-zsh/themes
install-ycm: install-vim
sudo apt-get -y install build-essential
sudo apt-get -y install cmake
cd ~/.vim/bundle/YouCompleteMe && \
git submodule update --init --recursive && \
./install.sh
# --clang-completer
install-fonts: install-vim
mkdir -p ~/.fonts/ && \
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf \
> ~/.fonts/PowerlineSymbols.otf
mkdir -p ~/.config/fontconfig/conf.d && \
wget https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf \
> ~/.config/fontconfig/conf.d/10-powerline-symbols.conf
# # fc-cache -vf ~/.fonts
update-sh: install-zsh
chsh -s /bin/zsh
update-bashrc: update-sh
mkdir -p ~/.olddots
if [ -f "~/.bashrc" ]; then \
mv ~/.bashrc ~/.olddots/.bashrc; \
fi
if [ -f "~/bashrc" ]; then \
mv ~/.bashrc ~/.olddots/.bashrc; \
fi
ln -s ~/.dotfiles/bashrc ~/.bashrc