[xmonad] Sshprompt, Urxvt and TERM

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Tue Dec 25 14:29:12 EST 2007


On Dec 25, 2007, at 12:05 , Dominik Bruhn wrote:

> if [ "$TERM" = "rxvt-unicode" ]; then
>     export TERM="xterm"    #fixes ssh issues (rxvt-unicode unknown)
> fi
>
> This works fine as urxvt is xterm compatible and all my remote- 
> machines
> know xterm.
>
> The problem is: If starting a ssh-session from the SSH-Prompt  
> Module of
> XMonad this setting doesnt work because .bashrc isnt evaluated. I know
> this is not a XMonad-Fault but perhaps somebody got a hint how I can
> work arround this.

Copy this to another file (say ~/.env) and set

export ENV=~/.env

in your .xinitrc / .xsession.

It might be better to see if rxvt-unicode has a setting to have it  
set $TERM to xterm instead (I'd expect an X resource, like its parent  
rxvt).

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the xmonad mailing list