..
This commit is contained in:
parent
0340b76885
commit
9c0ccc50fb
2 changed files with 22 additions and 9 deletions
|
@ -19,7 +19,7 @@ fetch_file() {
|
||||||
cat $1
|
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)
|
exec 3> >(LC_ALL=C sort)
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,18 @@
|
||||||
# Zsh >= 5.1 is required.
|
# Zsh >= 5.1 is required.
|
||||||
[[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return
|
[[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return
|
||||||
|
|
||||||
|
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.
|
# Prompt colors.
|
||||||
local grey='242'
|
local grey='242'
|
||||||
local red='1'
|
local red='1'
|
||||||
|
@ -45,6 +57,7 @@
|
||||||
local magenta='5'
|
local magenta='5'
|
||||||
local cyan='6'
|
local cyan='6'
|
||||||
local white='7'
|
local white='7'
|
||||||
|
fi
|
||||||
|
|
||||||
# Left prompt segments.
|
# Left prompt segments.
|
||||||
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
|
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
|
||||||
|
|
Loading…
Add table
Reference in a new issue