mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Accept prepended zeroes for colors
This commit is contained in:
parent
a3ed7ff347
commit
cd08fbd55d
|
@ -200,7 +200,7 @@ function anonymize {
|
|||
source ${XDG_CONFIG_DIR:-$HOME/.config}/shell/prompt
|
||||
|
||||
# Regular expression to match 0-255 numbers (color)
|
||||
color_int_re='^([0-9]{1,2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
|
||||
color_int_re='^(0+)?([0-9]{1,2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
|
||||
|
||||
# Defaults
|
||||
NAME="%n"
|
||||
|
@ -209,7 +209,7 @@ function anonymize {
|
|||
NAME_COLOR="%F{172}"
|
||||
#DIR_COLOR="%F{027}"
|
||||
DIR_COLOR="%F{158}"
|
||||
AT_COLOR="%F{027}"
|
||||
AT_COLOR="%F{004}"
|
||||
MACHINE_COLOR="%F{070}"
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
|
|
Loading…
Reference in a new issue