Bash Prompt HOWTO
$Revision: 0.93 $, $Date: 2003/11/06 02:12:02 $
Giles Orr
Copyright © 1998, 1999, 2000, 2001, 2003 Giles Orr
Creating and controlling terminal and xterm prompts is discussed, including incorporating standard escape sequences to give username, current working directory, time, etc. Further suggestions are made on how to modify xterm title bars, use external functions to provide prompt information, and how to use ANSI colours.
- Table of Contents
- 1. Introduction and Administrivia
- 1.1. Introduction
- 1.2. Revision History
- 1.3. Requirements
- 1.4. How To Use This Document
- 1.5. Document Versions, Comments and Suggestions
- 1.6. Problems
- 1.7. Credits/Bibliography
- 1.8. Disclaimer
- 2. Bash and Bash Prompts
- 3. Bash Programming and Shell Scripts
- 4. External Commands
- 5. Saving Complex Prompts
- 6. ANSI Escape Sequences: Colours and Cursor Movement
- 7. Special Characters: Octal Escape Sequences
- 8. The Bash Prompt Package
- 9. Loading a Different Prompt
- 10. Loading Prompt Colours Dynamically
- 11. Prompt Code Snippets
- 11.1. Built-in Escape Sequences
- 11.2. Date and Time
- 11.3. Counting Files in the Current Directory
- 11.4. Total Bytes in the Current Directory
- 11.5. Checking the Current TTY
- 11.6. Stopped Jobs Count
- 11.7. Load
- 11.8. Uptime
- 11.9. Number of Processes
- 11.10. Controlling the Size and Appearance of $PWD
- 11.11. Laptop Power
- 11.12. Having the Prompt Ignored on Cut and Paste
- 11.13. New Mail
- 11.14. Prompt Beeps After Long-Running Commands
- 12. Example Prompts
- A. GNU Free Documentation License
Next | ||
Introduction and Administrivia |