projects
/
~madcoder
/
dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support MacOS
[~madcoder/dotfiles.git]
/
+bin
/
madconf
diff --git
a/+bin/madconf
b/+bin/madconf
index
aae2ee2
..
cba54fd
100755
(executable)
--- a/
+bin/madconf
+++ b/
+bin/madconf
@@
-1,10
+1,12
@@
#!/bin/bash
#!/bin/bash
+. "$(dirname "$0")/setup.sh"
+
dotfiles="$(dirname "$(dirname "$(readlink -f "$0")")")"
dot_ln() {
dotfiles="$(dirname "$(dirname "$(readlink -f "$0")")")"
dot_ln() {
- rel="$(echo "${1#$dotfiles/}" | sed -e 's~[^/]
\+
~..~g')/"
- ln -s "${rel#../}${1#$HOME/}" "$HOME/$2"
+ rel="$(echo "${1#$dotfiles/}" | sed -e 's~[^/]
[^/]*
~..~g')/"
+ ln -s
f
"${rel#../}${1#$HOME/}" "$HOME/$2"
}
find $dotfiles -mindepth 1 -type d \( -name '[+.]*' -prune -o -print \) | while read d; do
}
find $dotfiles -mindepth 1 -type d \( -name '[+.]*' -prune -o -print \) | while read d; do
@@
-21,6
+23,6
@@
find $dotfiles -mindepth 1 \( -name '[+.]*' -prune -o -not -type d -print \) | w
dot_ln "$f" ".${f#$dotfiles/}"
done
dot_ln "$f" ".${f#$dotfiles/}"
done
-for cache in
ssh
zsh rlwrap ccache; do
+for cache in
compose mutt ssh gdb
zsh rlwrap ccache; do
mkdir -p "$HOME/.cache/$cache"
done
mkdir -p "$HOME/.cache/$cache"
done