mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 02:52:55 +00:00
force symlinks instead of removing files
This commit is contained in:
parent
c408e814e0
commit
a8bbca7189
@ -8,8 +8,7 @@ setup_symlinks() {
|
|||||||
for source in $(find "$DOTS" -iname "*.symlink")
|
for source in $(find "$DOTS" -iname "*.symlink")
|
||||||
do
|
do
|
||||||
dest="$HOME/.`basename \"${source%.*}\"`"
|
dest="$HOME/.`basename \"${source%.*}\"`"
|
||||||
rm -rf "$dest"
|
ln -sf "$source" "$dest"
|
||||||
ln -s "$source" "$dest"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "symlinks ✓"
|
echo "symlinks ✓"
|
||||||
@ -19,8 +18,7 @@ setup_configlinks() {
|
|||||||
for source in $(find "$DOTS" -iname "*.configlink")
|
for source in $(find "$DOTS" -iname "*.configlink")
|
||||||
do
|
do
|
||||||
dest="$HOME/.config/`basename \"${source%.*}\"`"
|
dest="$HOME/.config/`basename \"${source%.*}\"`"
|
||||||
rm -rf "$dest"
|
ln -sf "$source" "$dest"
|
||||||
ln -s "$source" "$dest"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "configlinks ✓"
|
echo "configlinks ✓"
|
||||||
|
Loading…
Reference in New Issue
Block a user