[Nix-dev] fixing the annoying "Cannot find terminfo entry for 'rxvt-unicode'"

Florian Friesdorf flo at chaoflow.net
Thu Dec 29 20:43:46 CET 2011


On Mon, 06 Jun 2011 01:56:02 +0200, Marc Weber <marco-oweber at gmx.de> wrote:
> urxvt ships its own terminal file which you can install system wide using NixOS's option pathsToLink = ["/"] easily.
> 
> Additionally adding this to the system wide bashrc:
> 
>         # try to find current terminal setting in system or user profile:
>         for p in {/var/run/current-system/sw,~/.nix-profile}/share/terminfo; do
>           [ -e "$p/${TERM:0:1}/$TERM" ] && {
>             export TERMINFO="$p"
>             # looks like we have to reset TERM after telling zsh where to find TERMINFO ?
>             TERM=$TERM
>           }
>         done
>         unset p
> 
> will set TERMINFO accordingly and suddenly mutt, screen etc can be
> started without tweaking TERM first.

implemented with r31143-5:
- pathsToLink includes '/share/terminfo' by default
- /etc/static/profile set TERMINFO_DIRS based on NIX_PROFILES and resets
  TERM afterwards

With that terminfo is found in the system, default and user profiles.

thanks to Michael Raskin and Marc Weber for the right pointers!

-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20111229/082b9b8a/attachment.bin 


More information about the nix-dev mailing list