A Sample Function inline with Bashprompt In a recent text configuring colors for the Bash prompt was discussed. In this text a method of messing with the prompt is expanded upon by actually inserting a shell code function inline with the bash prompt. A Basic Bash Prompt The bash prompt has built in commands that use escape charachter syntax. By default a lot of packages ship bash with a default that shows the hostname and relative path. The escape sequences for all users is usually kept in /etc/bashrc or a similar system location. See the rest of the article for more info. |
Printed at http://lxer.com/module/newswire/view/88207/index.html