* Set the checkwinsize option in interactive shells. Otherwise

bash may miss resize events (I guess SIGWINCH is only sent to
  the foreground process).

svn path=/nixos/trunk/; revision=25815
This commit is contained in:
Eelco Dolstra 2011-02-08 14:58:41 +00:00
parent 28e4ac1af2
commit 7104acfa8b

View file

@ -2,6 +2,11 @@ if [ -n "$NOSYSBASHRC" ]; then
return
fi
# In interactive shells, check the window size after every command.
if [ -n "$PS1" ]; then
shopt -s checkwinsize
fi
# Initialise a bunch of environment variables.
export LD_LIBRARY_PATH=/var/run/opengl-driver/lib:/var/run/opengl-driver-32/lib # !!! only set if needed
export MODULE_DIR=@modulesTree@/lib/modules