Check if $term is defined before checking that it's equal to emacs - dotfiles - leot's dotfiles
 (HTM) hg clone https://bitbucket.org/iamleot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset bbd7124f7d8d19eebb9e7d5f92f0898455ac45b6
 (DIR) parent b39056fc0239e9bf3c072e839c621f1eb45f9d2c
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Thu, 20 Jun 2019 23:36:39 
       
       Check if $term is defined before checking that it's equal to emacs
       
       Diffstat:
        tcshrc |  2 +-
        1 files changed, 1 insertions(+), 1 deletions(-)
       ---
       diff -r b39056fc0239 -r bbd7124f7d8d tcshrc
       --- a/tcshrc    Thu Jun 20 23:31:23 2019 +0200
       +++ b/tcshrc    Thu Jun 20 23:36:39 2019 +0200
       @@ -146,7 +146,7 @@
        alias xic xclip -i -selection clipboard
        alias xoc xclip -o -selection clipboard
        
       -if ( $term == emacs ) then
       +if (( $?term ) && ( $term == emacs )) then
               # Emacs, or - better - `:script' in vi!
               unset rprompt
               setenv PAGER catless