.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 08 Jul 2012 15:24:33 +0300
changeset 483 f02dbcb71260
parent 480 4d0ff0dfdeb9
child 484 cf2e6576575c
permissions -rw-r--r--
Technique to share command history across Bash secctions.

#!/bin/bash

if [[ -f ~/.bashenv ]]; then
  . ~/.bashenv
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
  setxkbmap us,ru,ua
  kbdd &
  if [[ -f ~/.xmodmaprc ]]; then
    xmodmap ~/.xmodmaprc
  fi
  xsetroot -gray
  fvwm &
fi

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