-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (52 loc) · 1.9 KB
/
Makefile
File metadata and controls
65 lines (52 loc) · 1.9 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
IS_DARWIN := $(filter Darwin,$(shell uname))
IS_WSL := $(shell grep -qi microsoft /proc/version 2>/dev/null && echo 1)
install-user: install-virtualenvwrapper install-pythonrc \
install-bin install-git install-hg \
install-nuget install-zsh install-claude
install-global: install-user
install-git:
ln -fs `pwd`/git/gitconfig ~/.gitconfig
install-hg:
ln -fs `pwd`/hg/hgrc ~/.hgrc
install-bin:
mkdir -p ~/.bin/
ln -fs `pwd`/bin/* ~/.bin/
install-virtualenvwrapper:
mkdir -p ~/.virtualenvs/
ln -fs `pwd`/virtualenvwrapper/* ~/.virtualenvs/
install-pythonrc:
ln -fs `pwd`/python/pythonrc.py ~/.pythonrc.py
install-fish:
mkdir -p ~/.config/fish/
ln -fs `pwd`/fish/config.fish ~/.config/fish/config.fish
bootstrap-zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
ifdef IS_DARWIN
brew install antidote
else
git clone --depth=1 https://github.com/mattmc3/antidote.git ~/.antidote
endif
install-zsh:
mkdir -p `pwd`/.oh-my-zsh/
ln -fs `pwd`/zsh/zshrc ~/.zshrc
# TODO(dcramer): there must be a better way to do specify my own theme?
# [ -e ~/.oh-my-zsh ] && ln -fs `pwd`/zsh/themes/* ~/.oh-my-zsh/themes/
mkdir -p ~/.config/zsh_custom/themes/
ln -fs `pwd`/zsh/themes/* ~/.config/zsh_custom/themes/
ln -fs `pwd`/zsh/zsh_plugins ~/.config/zsh_plugins
# mkdir -p ~/.zsh-extras/
# [ ! -e ~/.zsh-extras/zsh-autosuggestions ] && git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-extras/zsh-autosuggestions
install-nuget:
mkdir -p ~/.nuget
wget -O ~/.nuget/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
install-ssh:
ifneq ($(or $(IS_DARWIN),$(IS_WSL)),)
mkdir -p ~/.ssh
ln -fs `pwd`/ssh/config ~/.ssh/config
chmod 600 ~/.ssh/config
endif
install-claude:
mkdir -p ~/.claude
ln -fs `pwd`/claude/settings.json ~/.claude/settings.json
ln -fs `pwd`/claude/statusline.sh ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.sh