1
0
Fork 0
This commit is contained in:
Vladimír Dudr 2022-11-24 15:42:27 +01:00
parent 0340b76885
commit 9c0ccc50fb
2 changed files with 22 additions and 9 deletions

View file

@ -19,7 +19,7 @@ fetch_file() {
cat $1
}
coproc fetch $1 | openssl x509 -in - -noout -subject -issuer -startdate -enddate -ext subjectAltName | sed '/X509v3 Subject Alternative Name/ {n ; s/DNS://g ; s/, /\n /g;}'
coproc fetch $1 | openssl x509 -in /dev/stdin -noout -subject -issuer -startdate -enddate -ext subjectAltName | sed '/X509v3 Subject Alternative Name/ {n ; s/DNS://g ; s/, /\n /g;}'
exec 3> >(LC_ALL=C sort)

View file

@ -37,14 +37,27 @@
# Zsh >= 5.1 is required.
[[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return
# Prompt colors.
local grey='242'
local red='1'
local yellow='3'
local blue='4'
local magenta='5'
local cyan='6'
local white='7'
if (( $(echotc Co) > 8 )) # linux console has 8
then
local grey='#7c6f64' # gruvbox dark4
local red='#fb4934'
local green='#b8bb26'
local yellow='#fabd2f'
local blue='#458588'
local magenta='#d3869b' # gruvbox purple
local cyan='#8ec07c' # gruvbox aqua
local white='#f9f5d7'
else
# Prompt colors.
local grey='242'
local red='1'
local yellow='3'
local blue='4'
local magenta='5'
local cyan='6'
local white='7'
fi
# Left prompt segments.
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(