shell.c prompt function shortened