#! /bin/sh
# xinitrc --- X environment bootstrapper for X sessions
# Author: by Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1995-03-10
# Public domain

# $Id: xinitrc,v 1.1 1995/03/11 03:13:40 friedman Exp $

# Commentary:

# All this does is look for bash and invoke my real xinitrc with it.
# If bash cannot be found, just run a vanilla xterm.

# Code:

if ( bash -c : ; ) 2> /dev/null ; then
  case ${XINITRC_DEBUG+set} in
    set ) exec bash -x ${0}.bash ${1+"$@"} >> $HOME/.xinitrc.debug 2>&1 ;;
    * )   exec bash    ${0}.bash ${1+"$@"} ;;
  esac
else
  exec xterm
fi

# xinitrc ends here
