-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_symlinks.py
executable file
·33 lines (25 loc) · 990 Bytes
/
create_symlinks.py
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
#!/usr/bin/env python
import os
print('yo')
subl_home = "/Users/hunter/Library/Application\ Support/Sublime\ Text\ 3/Packages/User"
symlinkables = {
".agignore ": "~/",
".gitconfig": "~/",
".zshrc": "~/",
".tmux.conf": "~/",
".vimrc": "~/",
"virtualenv/postactivate": "$WORKON_HOME/",
"virtualenv/postdeactivate": "$WORKON_HOME/",
# sublime stuff
"sublime/Default\ \(OSX\).sublime-keymap": subl_home,
"sublime/Preferences.sublime-settings": subl_home,
"sublime/Package\ Control.sublime-settings": subl_home,
# date-pasting shortcut
"Type\ the\ Date.workflow": "/Users/hunter/Library/Services",
# todo: copy instead of symlink
"custom-capslock.json": "~/.config/karabiner/assets/complex_modifications/",
}
# ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
for source, dest in symlinkables.items():
# os.symlink(src, dst)
print("linking: {} --> {}".format(source, dest))