This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/x/link.bash

21 lines
453 B
Bash
Raw Normal View History

2016-01-06 11:55:04 -06:00
#!/usr/bin/env bash
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/.." && pwd)
source "$DIR/variables.bash"
rm "$HOME/.xinitrc"
rm "$HOME/.Xresources"
ln -s "$HOME/.dotfiles/x/xinitrc" "$HOME/.xinitrc"
ln -s "$HOME/.dotfiles/x/xresources" "$HOME/.Xresources"
2016-01-06 12:23:59 -06:00
xrdb "$HOME/.Xresources"
if [ -f "$HOME/.Xresources.colors" ]; then
xrdb -merge "$HOME/.Xresources.colors"
fi
if [ -f "$HOME/.Xresources.env" ]; then
xrdb -merge "$HOME/.Xresources.env"
fi