Lines Matching refs:PS1
302 static char *PS1; variable
948 PS1 = NULL; in cmdedit_set_initial_prompt()
950 PS1 = env_get("PS1"); in cmdedit_set_initial_prompt()
951 if(PS1==0) in cmdedit_set_initial_prompt()
952 PS1 = "\\w \\$ "; in cmdedit_set_initial_prompt()
962 free(PS1); in setup_prompt_string()
963 PS1=xmalloc(strlen(cwd)+4); in setup_prompt_string()
964 sprintf(PS1, "%s %s", cwd, ( geteuid() != 0 ) ? "$ ":"# "); in setup_prompt_string()
965 *prompt_str = PS1; in setup_prompt_string()
970 *prompt_str = (promptmode==1)? PS1 : PS2; in setup_prompt_string()
3412 PS1 = NULL;