forked from piranha/conf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinkall
More file actions
executable file
·36 lines (34 loc) · 1.06 KB
/
linkall
File metadata and controls
executable file
·36 lines (34 loc) · 1.06 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
#!/usr/bin/env zsh
typeset -A mapping
mapping=(
.zshrc .zshrc
.editrc .editrc
.emacs.d .emacs.d
.gitconfig .gitconfig
.hgconcise .hgconcise
.hgrc .hgrc
.vimrc .vimrc
DefaultKeyBinding.dict Library/KeyBindings/DefaultKeyBinding.dict
ipython_config.py .ipython/profile_default/ipython_config.py
.inputrc .inputrc
.psqlrc .psqlrc
lein-profiles.clj .lein/profiles.clj
git-req bin/git-req
# LT/user.keymap "Library/Application Support/LightTable/settings/user.keymap"
# LT/user.behaviors "Library/Application Support/LightTable/settings/user.behaviors"
.tmux.conf .tmux.conf
.patdiff .patdiff
net.solovyov.runonwifi.plist "Library/LaunchAgents/net.solovyov.runonwifi.plist"
hammerspoon.lua .hammerspoon/init.lua
karabiner.json .config/karabiner/karabiner.json
joker .joker
rc.elv .elvish/rc.elv
)
for src in ${(k)mapping}; do
dst=~/${mapping[$src]}
if [ ! -L "$dst" ]; then
echo "$src -> $dst"
mkdir -p "$(dirname "$dst")"
ln -s "$PWD/$src" "$dst"
fi
done