diff --git a/bin/executable_showcert b/bin/executable_showcert index 86f3be5..5caf587 100644 --- a/bin/executable_showcert +++ b/bin/executable_showcert @@ -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) diff --git a/dot_config/zsh/include/p10k.zsh b/dot_config/zsh/include/p10k.zsh index 05a5d77..0f48a23 100644 --- a/dot_config/zsh/include/p10k.zsh +++ b/dot_config/zsh/include/p10k.zsh @@ -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=(