title: How to set custom prompt when opening a new xterm?
body: <p>I want to open a new xterm with a custom prompt string.
  Since prompt is set using the <code>prompt</code> variable, I thought I could just run:</p>
  
  <p><code>xterm -e "set prompt = $prompt_string_of_my_choosing" #The organization I work for uses tcsh</code></p>
  
  <p>The problem is, I want the xterm to stay interactive.
  I tried <code>tcsh -c</code> as a command for <code>-e</code>, I tried sourcing another script that would set the prompt to the way I want it . The results I'm getting are either an interactive shell with the default prompt, or an xterm that just closes (or stays open with <code>-hold</code> but not interactive).</p>
  
  <p>I was however able to bypass the problem by adding the following to <code>~/.cshrc</code>:</p>
  
  <p><code>if ($?calling_prompt) then
      set prompt = "$calling_prompt"
  endif</code></p>
  
  <p>And of course I preset the <code>$calling_prompt</code> variable in advance.
  This works, but requires me to edit <code>~/.cshrc</code>, so it's not a global solution.</p>
  
  <p>Any ideas? </p>