20 lines
466 B
Bash
20 lines
466 B
Bash
#!/bin/bash
|
|
|
|
cp -r .config ~/
|
|
cp -r .local ~/
|
|
|
|
# Fix broken mason links
|
|
for link in $link_dir/*; do
|
|
if [ -L "$link" ]; then
|
|
link_name=$(basename "$link")
|
|
target_path=$(readlink -f "$link")
|
|
|
|
new_target_path="$1${target_path#$HOME}"
|
|
|
|
ln -sf "$new_target_path" "$link_dir/$link_name"
|
|
echo "Updated $link_name to point to $new_target_path"
|
|
fi
|
|
done
|
|
|
|
echo "export \$PATH=\$PATH:~/.local/share/nvim-linux64/bin/nvim"
|