diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-02-08 14:58:41 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-02-08 14:58:41 +0000 |
commit | 7104acfa8b629fcd6af3cfb969e98fc68e815c11 (patch) | |
tree | ccaf6e840f510a5a2791840c1e517b85ed90a3bc /modules/programs | |
parent | 28e4ac1af230d3252fef6769d194a876a020cb0b (diff) | |
download | nixpkgs-7104acfa8b629fcd6af3cfb969e98fc68e815c11.tar nixpkgs-7104acfa8b629fcd6af3cfb969e98fc68e815c11.tar.gz nixpkgs-7104acfa8b629fcd6af3cfb969e98fc68e815c11.tar.bz2 nixpkgs-7104acfa8b629fcd6af3cfb969e98fc68e815c11.tar.lz nixpkgs-7104acfa8b629fcd6af3cfb969e98fc68e815c11.tar.xz nixpkgs-7104acfa8b629fcd6af3cfb969e98fc68e815c11.tar.zst nixpkgs-7104acfa8b629fcd6af3cfb969e98fc68e815c11.zip |
* 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
Diffstat (limited to 'modules/programs')
-rw-r--r-- | modules/programs/bash/bashrc.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/programs/bash/bashrc.sh b/modules/programs/bash/bashrc.sh index c301ffde73a..5ce6b0ebd88 100644 --- a/modules/programs/bash/bashrc.sh +++ b/modules/programs/bash/bashrc.sh @@ -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 |