/* $Id: prompt.c,v 1.3 2004/02/01 13:52:17 skaus Exp $
 *  PROMPT.C - prompt handling.
 *
 */

#include "../config.h"


#include "../include/cmdline.h"
#include "../include/command.h"
#include "../include/context.h"
#include "../include/misc.h"

int cmd_prompt(char *param)
{
  if(param && *param == '=')    /* skip '=' & spaces */
    param = ltrimcl(param + 1);

  /* NO rtrim()! */
  return chgEnvRemove(PROMPTVAR, param);
}
