.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 29 Jun 2012 22:57:36 +0300
changeset 470 2d1f71f28130
parent 449 63fe7a1ebae4
child 471 8b397639ecc3
permissions -rw-r--r--
Check for files before loading.

#!/bin/bash

if [[ -f ~/.bash_path ]]; then
  . ~/.bash_path
fi
# Load custom settings (user editable).
if [[ -f ~/.bash_custom ]]; then
  . ~/.bash_custom
fi

if [[ -f ~/.Xdefaults ];; then
  xrdb -merge ~/.Xdefaults
  # xrdb -load ~/.Xdefaults
fi

# Under Cygwin I prefer '-multiwindow' option, so it needn't to setup WM.
if [[ -z $COMSPEC ]]; then
  if [[ ~/.xmodmaprc ]]; then
    xmodmap ~/.xmodmaprc
  fi
  xsetroot -gray
  fvwm &
fi

# Last command.
exec xterm -geometry 80x42 -e bash -i