From 49ffbaebb5e16beba656309b5bf2c9703e947985 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 25 Jun 2018 07:11:16 -0700 Subject: [PATCH] Link .Xresources when needed --- install.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.zsh b/install.zsh index 982f2f3..7fc9024 100755 --- a/install.zsh +++ b/install.zsh @@ -10,6 +10,7 @@ function uninstall { eval $rm "$HOME/.emacs.d" eval $rm "$HOME/.tmux.conf" eval $rm "$HOME/.config/nvim" + eval $rm "$HOME/.Xresources" } function install { @@ -17,6 +18,13 @@ function install { eval $link "$PWD/.zshrc" "$HOME/.zshrc" eval $link "$PWD/.tmux.conf" "$HOME/.tmux.conf" eval $link "$PWD/.config/nvim" "$HOME/.config/nvim" + + which xrdb &> /dev/null + xrdb_exists=$? + if (( !xrdb_exists )); then + eval $link "$PWD/.Xresources" "$HOME/.Xresources" + xrdb "$PWD/.Xresources" + fi } if [[ "$1" == "uninstall" ]]; then