Add XDG support
This commit is contained in:
parent
51ed6ab9a4
commit
bc27c34aad
18 changed files with 8 additions and 2 deletions
|
@ -109,8 +109,14 @@ install_dotfiles () {
|
||||||
|
|
||||||
for src in $(find "$DOTFILES_ROOT" -maxdepth 2 -name '*.symlink')
|
for src in $(find "$DOTFILES_ROOT" -maxdepth 2 -name '*.symlink')
|
||||||
do
|
do
|
||||||
dst="$HOME/.$(basename "${src%.*}")"
|
if [[ "$src" == *.xdg.symlink ]]
|
||||||
|
then
|
||||||
|
dst="$HOME/.config/$(basename "${src%.xdg.symlink}")"
|
||||||
link_file "$src" "$dst"
|
link_file "$src" "$dst"
|
||||||
|
else
|
||||||
|
dst="$HOME/.$(basename "${src%.symlink}")"
|
||||||
|
link_file "$src" "$dst"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue