blob: 82df6ec195111ffd1ccc19955fdc1de86e0ea4f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
# places dot symlinks in $HOME to point to the files in this directory,
# also places a symlink from ~/.local/bin/ to local/bin in this directory
cd $(dirname $0)
for i in $(find -maxdepth 1 -type f | grep -v $(basename $0)) ; do
ln -s ${PWD/$HOME\//}/$i $HOME/.${i#./}
done
# extra symlinks
ln -s "../${PWD/$HOME\//}/local/bin" "$HOME/.local/"
|