summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Friesdorf <flo@chaoflow.net>2011-12-29 19:38:03 +0000
committerFlorian Friesdorf <flo@chaoflow.net>2011-12-29 19:38:03 +0000
commitb2eb54ae5a16207c0360c397ea0cc14fc9f1931d (patch)
tree40594e46409fa1f59362f29b0ee412caeef9ae4f
parent05a49f663ec5e0e95c2388cfc4d94eb07ff8bed0 (diff)
downloadnixlib-b2eb54ae5a16207c0360c397ea0cc14fc9f1931d.tar
nixlib-b2eb54ae5a16207c0360c397ea0cc14fc9f1931d.tar.gz
nixlib-b2eb54ae5a16207c0360c397ea0cc14fc9f1931d.tar.bz2
nixlib-b2eb54ae5a16207c0360c397ea0cc14fc9f1931d.tar.lz
nixlib-b2eb54ae5a16207c0360c397ea0cc14fc9f1931d.tar.xz
nixlib-b2eb54ae5a16207c0360c397ea0cc14fc9f1931d.tar.zst
nixlib-b2eb54ae5a16207c0360c397ea0cc14fc9f1931d.zip
set TERMINFO_DIRS according to NIX_PROFILES
this finally makes rxvt-unicode work without manually linking it's terminfo

svn path=/nixos/trunk/; revision=31145
-rw-r--r--modules/programs/bash/profile.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/programs/bash/profile.sh b/modules/programs/bash/profile.sh
index 36c2d520ec08..26d3930b8437 100644
--- a/modules/programs/bash/profile.sh
+++ b/modules/programs/bash/profile.sh
@@ -29,6 +29,10 @@ for i in $NIX_PROFILES; do # !!! reverse
     export INFOPATH=$i/info:$i/share/info${INFOPATH:+:}$INFOPATH
     export PKG_CONFIG_PATH="$i/lib/pkgconfig${PKG_CONFIG_PATH:+:}$PKG_CONFIG_PATH"
 
+    # terminfo and reset TERM with new TERMINFO available
+    export TERMINFO_DIRS=$i/share/terminfo${TERMINFO_DIRS:+:}$TERMINFO_DIRS
+    export TERM=$TERM
+
     # "lib/site_perl" is for backwards compatibility with packages
     # from Nixpkgs <= 0.12.
     export PERL5LIB="$i/lib/perl5/site_perl:$i/lib/site_perl${PERL5LIB:+:}$PERL5LIB"