docs
.sk
comprehensive documentation repository
Slovensky
English
tLDP
Home
Man pages
tLDP
Documents
Utilities
About
Bash Prompt HOWTO
Index
Introduction and Administrivia
Introduction
Revision History
Requirements
How To Use This Document
Document Versions, Comments and Suggestions
Problems
Credits/Bibliography
Disclaimer
Bash and Bash Prompts
What is Bash?
What Can Tweaking Your Bash Prompt Do For You?
Why Bother?
The First Step
Bash Prompt Escape Sequences
Setting the PS? Strings Permanently
Bash Programming and Shell Scripts
Variables
Quotes and Special Characters
Command Substitution
Non-Printing Characters in Prompts
Sourcing a File
Functions, Aliases, and the Environment
External Commands
PROMPT_COMMAND
External Commands in the Prompt
What to Put in Your Prompt
Saving Complex Prompts
ANSI Escape Sequences: Colours and Cursor Movement
Colours
Cursor Movement
Xterm Title Bar Manipulations
Xterm Title Bars and Screen
Colours and Cursor Movement With tput
Special Characters: Octal Escape Sequences
The Bash Prompt Package
Availability
Xterm Fonts
Changing the Xterm Font
Line Draw Characters without VGA Fonts
Loading a Different Prompt
Loading a Different Prompt, Later
Loading a Different Prompt, Immediately
Loading Different Prompts in Different X Terms
Loading Prompt Colours Dynamically
A "Proof of Concept" Example
Prompt Code Snippets
Built-in Escape Sequences
Date and Time
Counting Files in the Current Directory
Total Bytes in the Current Directory
Checking the Current TTY
Stopped Jobs Count
Load
Uptime
Number of Processes
Controlling the Size and Appearance of $PWD
Laptop Power
Having the Prompt Ignored on Cut and Paste
New Mail
Prompt Beeps After Long-Running Commands
Example Prompts
Examples on the Web
A "Lightweight" Prompt
Dan's Prompt
Elite from Bashprompt Themes
A "Power User" Prompt
Prompt Depending on Connection Type
A Prompt the Width of Your Term
The Floating Clock Prompt
The Elegant Useless Clock Prompt
GNU Free Documentation License
PREAMBLE
APPLICABILITY AND DEFINITIONS
VERBATIM COPYING
COPYING IN QUANTITY
MODIFICATIONS
COMBINING DOCUMENTS
COLLECTIONS OF DOCUMENTS
AGGREGATION WITH INDEPENDENT WORKS
TRANSLATION
TERMINATION
FUTURE REVISIONS OF THIS LICENSE
How to use this License for your documents
Legal notice
Bash Prompt HOWTO:
Prev
Next
Chapter 4. External Commands
Table of Contents
4.1.
PROMPT_COMMAND
4.2.
External Commands in the Prompt
4.3.
What to Put in Your Prompt
Prev
Home
Next
Functions, Aliases, and the Environment
PROMPT_COMMAND
Copyright © 2010-2025
Platon Technologies, s.r.o.
Home
|
Man pages
|
tLDP
|
Documents
|
Utilities
|
About
Design by
styleshout