-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (52 loc) · 2.23 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
install: install-bin install-vim install-vcprompt install-git install-hub \
install-bash install-pythonrc install-subl install-inputrc install-wtc install-gnupg
install-vim:
rm -rf ~/.vim ~/.vimrc
ln -s `pwd`/vim ~/.vim
ln -s `pwd`/vimrc ~/.vimrc
install-vcprompt:
@rm -rf /tmp/vcprompt
@mkdir -p /tmp/vcprompt
@cd /tmp/vcprompt && curl -OL https://bitbucket.org/gward/vcprompt/get/default.tar.gz && \
tar zxf default.tar.gz && cd gward-* && autoconf && ./configure && make && \
echo "Installing vcprompt to /usr/local/bin/vcprompt" && sudo mv vcprompt /usr/local/bin/vcprompt
@rm -rf /tmp/vcprompt
install-git:
rm -f ~/.gitconfig
ln -n `pwd`/gitconfig ~/.gitconfig
curl -o ~/.git-completion.bash https://github.com/git/git/raw/master/contrib/completion/git-completion.bash -OL
(cd /tmp && git clone --depth 1 https://github.com/visionmedia/git-extras.git && cd git-extras && sudo make install)
install-hub:
curl http://hub.github.com/standalone -sLo ~/bin/hub && chmod +x ~/bin/hub
install-bin:
mkdir -p ~/bin/
ln -fs `pwd`/bin/* ~/bin/
install-bash:
rm -f ~/.bashrc
rm -f ~/.bash_profile
ln -s `pwd`/bashrc ~/.bash_profile
ln -s ~/.bash_profile ~/.bashrc
install-inputrc:
rm -f ~/.inputrc
ln -s `pwd`/inputrc ~/.inputrc
install-pythonrc:
rm -f ~/.pythonrc.py
ln -s `pwd`/python/pythonrc.py ~/.pythonrc.py
install-wtc:
curl http://github.com/lwe/whatthecommit/raw/master/whatthecommit -sLo ~/bin/wtc && chmod +x ~/bin/wtc
install-gnupg:
mkdir -p ~/.gnupg
rm -f ~/.gnupg/gpg.conf
ln -s `pwd`/gpg.conf ~/.gnupg/gpg.conf
install-subl:
ifeq ($(shell uname),Darwin)
sudo rm -f /usr/local/bin/subl /usr/local/bin/subl3
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
sudo ln -s /usr/local/bin/subl /usr/local/bin/subl3
sudo ln -s `pwd`/sublime-text-3/Packages "/Users/ente/Library/Application Support/Sublime Text 3/"
sudo ln -s "`pwd`/sublime-text-3/Installed Packages" "/Users/ente/Library/Application Support/Sublime Text 3/"
else
rm -rf /home/chris/.config/sublime-text-3/{Packages,"Installed Packages"}
sudo ln -s "`pwd`/sublime-text-3/Packages" "/home/chris/.config/sublime-text-3/"
sudo ln -s "`pwd`/sublime-text-3/Installed Packages" "/home/chris/.config/sublime-text-3/"
endif