forked from leocomelli/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (45 loc) · 1.46 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
SHELL := /bin/bash
install: install-ssh install-powerline install-vim install-bash
clean:
rm -rf ~/.bash
rm -rf ~/.dotfiles
rm -rf ~/.bashrc
rm -rf ~/.bash_profile
rm -rf ~/.gemrc
rm -rf ~/.tmux.conf
rm -rf ~/.minttyrc
rm -rf ~/.gitconfig
rm -rf ~/.gitignore
rm -rf ~/.vimrc
rm -rf ~/.vim
rm -rf ~/powerline-config
install-ssh:
env
sed -i 's/GITHUB_USER/'"${GITHUB_USER}"'/g' ssh/config
sed -i 's/GHE_ENTERPRISE_ADDR/'"${GHE_ENTERPRISE_ADDR}"'/g' ssh/config
sed -i 's/GHE_ENTERPRISE_USER/'"${GHE_ENTERPRISE_USER}"'/g' ssh/config
cp ssh/config ~/.ssh/config
cat ~/.ssh/config
install-bash:
cp -rf `pwd`/bash ~/.bash
cp -rf `pwd`/dotfiles ~/.dotfiles
ln -s ~/.dotfiles/.bashrc ~/.bashrc
ln -s ~/.dotfiles/.bash_profile ~/.bash_profile
ln -s ~/.dotfiles/.gemrc ~/.gemrc
ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf
ln -s ~/.dotfiles/.minttyrc ~/.minttyrc
ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
ln -s ~/.dotfiles/.gitignore ~/.gitignore
source ~/.bash_profile
install-vim:
rm -rf ~/.vim
cp -Rf `pwd`/vim ~/.vim
ln -s ~/.vim/.vimrc ~/.vimrc
git clone [email protected]:VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
git clone https://github.com/ekalinin/Dockerfile.vim.git ~/.vim/bundle/Dockerfile.vim
vim +BundleInstall +qall
install-powerline:
sudo pip install powerline-status
sudo pip install powerline-gitstatus
git clone [email protected]:gravyboat/powerline-config.git ~/powerline-config
cp -r ~/powerline-config/powerline/ ~/.config/