.xsessionrc

Sat, 14 Jun 2014 23:28:13 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 14 Jun 2014 23:28:13 -0400
changeset 57
8af5835e43e1
parent 56
e341df2dafda
child 65
9c8f98eb7e1b
permissions
-rw-r--r--

Avoid warning when no .Xdefaults.local exists

#!/bin/bash

if [ -d ~/bin ]; then
  export PATH="$HOME/bin:$PATH"
fi

if [ -d ~/.plenv ]; then
  export PATH="$HOME/.plenv/bin:$PATH"
  eval "$( plenv init - )"
fi

if [ -d ~/.rbenv ]; then
  export PATH="$HOME/.rbenv/bin:$PATH"
  eval "$( rbenv init - )"
fi


if [ -x /usr/bin/urxvtd ]; then
  /usr/bin/urxvtd -q -o -f
fi

if [ -x /usr/bin/xcompmgr ]; then
  /usr/bin/xcompmgr -n &>/dev/null </dev/null &
fi


if [ -r ~/.Xdefaults.local ]; then
  /usr/bin/xrdb -quiet -merge -cpp /usr/bin/cpp -DUSE_LOCAL ~/.Xdefaults
fi

if [ -r ~/.xsessionrc.local ]; then
  . ~/.xsessionrc.local
fi

mercurial