Hi all, I just got an idea for a better PS1 setting.
For LFS newbies to tell whether a command is executed successfully or not is a little tricky, "echo $?" shows the return code for the last finished (foreground) command, but it is tedious to type this command every time. So let the computer do it for us. export PS1="\$? - [EMAIL PROTECTED] \w]\\$ " For a successful execution, the return value will be 0. Like 0 - [EMAIL PROTECTED] ~]$ For other errors, a non-zero value will be shown instead. Like 127 - [EMAIL PROTECTED] ~]$ Regards, William Zhou _______________________________________________ Clfs-dev mailing list [email protected] http://ninja.linux-phreak.biz/mailman/listinfo/clfs-dev
