mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-24 02:34:52 +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")
|
||||
do
|
||||
dest="$HOME/.`basename \"${source%.*}\"`"
|
||||
rm -rf "$dest"
|
||||
ln -s "$source" "$dest"
|
||||
ln -sf "$source" "$dest"
|
||||
done
|
||||
|
||||
echo "symlinks ✓"
|
||||
@ -19,8 +18,7 @@ setup_configlinks() {
|
||||
for source in $(find "$DOTS" -iname "*.configlink")
|
||||
do
|
||||
dest="$HOME/.config/`basename \"${source%.*}\"`"
|
||||
rm -rf "$dest"
|
||||
ln -s "$source" "$dest"
|
||||
ln -sf "$source" "$dest"
|
||||
done
|
||||
|
||||
echo "configlinks ✓"
|
||||
|
Loading…
Reference in New Issue
Block a user