| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #!/usr/bin/sh
- #\h = hostname
- #\u = user
- #\n = new line
- #\r = carriage return
- #\w = path
- #\W = directory
- #\t = time+secconds (24h)
- #\T = time+seconds (12h)
- #\@ = time+AM/PM (12h)
- #\A = time (24h)
- #\d = Date
- #\D{format} = prints date in format
- #\$? = error of last command
- #\j = jobs on this terminal
- #\l = shell's device base name
- #\s = shell's name
- #\v = bash version
- #\V = bash version + release
- #\! = command history number
- #\# = command number
- #\$ = # for root, $ for everyone else
- #\number = ascii octal character
- #\\ = \
- #\[ = open non-printed characters
- #\] = close non-printed characters
- #\e = excape
- RS="\[\033[0m\]" # reset
- BLD="\[\033[1m\]" # bold
- UL="\[\033[4m\]" # underline
- INV="\[\033[7m\]" # inverse background and foreground
- FBLK="\[\033[30m\]" # foreground black
- FRED="\[\033[31m\]" # foreground red
- FGRN="\[\033[32m\]" # foreground green
- FYEL="\[\033[33m\]" # foreground yellow
- FBLE="\[\033[34m\]" # foreground blue
- FMAG="\[\033[35m\]" # foreground magenta
- FCYN="\[\033[36m\]" # foreground cyan
- FWHT="\[\033[37m\]" # foreground white
- BBLK="\[\033[40m\]" # background black
- BRED="\[\033[41m\]" # background red
- BGRN="\[\033[42m\]" # background green
- BYEL="\[\033[43m\]" # background yellow
- BBLE="\[\033[44m\]" # background blue
- BMAG="\[\033[45m\]" # background magenta
- BCYN="\[\033[46m\]" # background cyan
- BWHT="\[\033[47m\]" # background white
|