Move PATH settings to separate file for speedup loading of '.xinitrc'.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.bash_path Mon Jan 02 18:10:23 2012 +0200
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+# set -x
+# set -u
+
+# XXX for mc, cvs, svn, ...
+export EDITOR=vim
+
+# XXX vim and gnome-terminal have support for 256 colours in fedora 8 at least
+# Note debian/ubuntu users should install the ncurses-term package to support this
+# export TERM=xterm-256color
+
+# Special case for CYGWIN to properly display russian letters in rxvt.
+# Don't forget set in Windows SHELL=/bin/bash. If default SHELL is sh then .bashrc will not be read.
+if [[ x$OSTYPE = xcygwin ]]; then
+ export LANG=ru_RU.CP1251
+ # Avoid permission problem in Cygwin.
+ umask 0000
+fi
+
+if [[ ! $PATH =~ $HOME/usr/bin ]]; then
+ export PATH=$PATH:~/usr/bin
+fi
+
+if [[ -z "$MANPATH" ]]; then
+ export MANPATH=~/usr/share/man:
+elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then
+ export MANPATH=$MANPATH:$HOME/usr/share/man:
+fi
+
+if [[ -z "$INFOPATH" ]]; then
+ export INFOPATH=~/usr/share/info:
+elif [[ ! $INFOPATH =~ $HOME/usr/share/info: ]]; then
+ export INFOPATH=$INFOPATH:$HOME/usr/share/info:
+fi
+
+export PYTHONSTARTUP=~/.pystartup
+
--- a/.bashrc Mon Jan 02 18:04:24 2012 +0200
+++ b/.bashrc Mon Jan 02 18:10:23 2012 +0200
@@ -5,13 +5,6 @@
# XXX
# [[ -f /etc/bashrc ]] && . /etc/bashrc
-# XXX for mc, cvs, svn, ...
-export EDITOR=vim
-
-# XXX vim and gnome-terminal have support for 256 colours in fedora 8 at least
-# Note debian/ubuntu users should install the ncurses-term package to support this
-# export TERM=xterm-256color
-
PS1='bash# '
# Set magenta bold font.
case "$TERM" in
@@ -123,32 +116,6 @@
# canonicalize path (including resolving symlinks)
# alias realpath='readlink -f'
-# Special case for CYGWIN to properly display russian letters in rxvt.
-# Don't forget set in Windows SHELL=/bin/bash. If default SHELL is sh then .bashrc will not be read.
-if [[ x$OSTYPE = xcygwin ]]; then
- export LANG=ru_RU.CP1251
- # Avoid permission problem in Cygwin.
- umask 0000
-fi
-
-if [[ ! $PATH =~ $HOME/usr/bin ]]; then
- export PATH=$PATH:~/usr/bin
-fi
-
-if [[ -z "$MANPATH" ]]; then
- export MANPATH=~/usr/share/man:
-elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then
- export MANPATH=$MANPATH:$HOME/usr/share/man:
-fi
-
-if [[ -z "$INFOPATH" ]]; then
- export INFOPATH=~/usr/share/info:
-elif [[ ! $INFOPATH =~ $HOME/usr/share/info: ]]; then
- export INFOPATH=$INFOPATH:$HOME/usr/share/info:
-fi
-
-export PYTHONSTARTUP=~/.pystartup
-
################################################################
# Key binding.