.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 06 Jul 2012 19:13:56 +0300
changeset 476 12a22ad9bab2
parent 471 8b397639ecc3
child 477 d0c29482707d
permissions -rw-r--r--
Fix typo.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
281
754e4ee92fc0 Switch to bash interpreter to get more advanced string matching functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 123
diff changeset
     1
#!/bin/bash
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
282
3710f0a122cd Load PATH settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 281
diff changeset
     3
if [[ -f ~/.bash_path ]]; then
3710f0a122cd Load PATH settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 281
diff changeset
     4
  . ~/.bash_path
3710f0a122cd Load PATH settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 281
diff changeset
     5
fi
449
63fe7a1ebae4 Load custom settings (user editable).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 442
diff changeset
     6
# Load custom settings (user editable).
63fe7a1ebae4 Load custom settings (user editable).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 442
diff changeset
     7
if [[ -f ~/.bash_custom ]]; then
63fe7a1ebae4 Load custom settings (user editable).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 442
diff changeset
     8
  . ~/.bash_custom
63fe7a1ebae4 Load custom settings (user editable).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 442
diff changeset
     9
fi
282
3710f0a122cd Load PATH settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 281
diff changeset
    10
471
8b397639ecc3 Fix typo.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 470
diff changeset
    11
if [[ -f ~/.Xdefaults ]]; then
470
2d1f71f28130 Check for files before loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 449
diff changeset
    12
  xrdb -merge ~/.Xdefaults
2d1f71f28130 Check for files before loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 449
diff changeset
    13
  # xrdb -load ~/.Xdefaults
2d1f71f28130 Check for files before loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 449
diff changeset
    14
fi
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
438
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 340
diff changeset
    16
# Under Cygwin I prefer '-multiwindow' option, so it needn't to setup WM.
289
914736b32f8a Use Bash syntax for string 'test'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 288
diff changeset
    17
if [[ -z $COMSPEC ]]; then
476
12a22ad9bab2 Fix typo.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 471
diff changeset
    18
  if [[ -f ~/.xmodmaprc ]]; then
470
2d1f71f28130 Check for files before loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 449
diff changeset
    19
    xmodmap ~/.xmodmaprc
2d1f71f28130 Check for files before loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 449
diff changeset
    20
  fi
442
a4d4a004bca7 Move xsetroot back to '.xinitrc'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 441
diff changeset
    21
  xsetroot -gray
56
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    22
  fvwm &
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    23
fi
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
# Last command.
310
3f53690ce833 Make xterm size larger to easy work with aptitude.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 289
diff changeset
    26
exec xterm -geometry 80x42 -e bash -i
438
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 340
diff changeset
    27