Lines Matching refs:PS1
301 static char *PS1; variable
947 PS1 = NULL; in cmdedit_set_initial_prompt()
949 PS1 = env_get("PS1"); in cmdedit_set_initial_prompt()
950 if(PS1==0) in cmdedit_set_initial_prompt()
951 PS1 = "\\w \\$ "; in cmdedit_set_initial_prompt()
961 free(PS1); in setup_prompt_string()
962 PS1=xmalloc(strlen(cwd)+4); in setup_prompt_string()
963 sprintf(PS1, "%s %s", cwd, ( geteuid() != 0 ) ? "$ ":"# "); in setup_prompt_string()
964 *prompt_str = PS1; in setup_prompt_string()
969 *prompt_str = (promptmode==1)? PS1 : PS2; in setup_prompt_string()
3402 PS1 = NULL;