Add XDG support

This commit is contained in:
Max Bucknell 2024-04-20 22:28:53 +10:00
parent 51ed6ab9a4
commit bc27c34aad
No known key found for this signature in database
18 changed files with 8 additions and 2 deletions

View file

@ -109,8 +109,14 @@ install_dotfiles () {
for src in $(find "$DOTFILES_ROOT" -maxdepth 2 -name '*.symlink')
do
dst="$HOME/.$(basename "${src%.*}")"
link_file "$src" "$dst"
if [[ "$src" == *.xdg.symlink ]]
then
dst="$HOME/.config/$(basename "${src%.xdg.symlink}")"
link_file "$src" "$dst"
else
dst="$HOME/.$(basename "${src%.symlink}")"
link_file "$src" "$dst"
fi
done
}