Compare commits

...

3 Commits

Author SHA1 Message Date
Brian Liotti 7ee71a1884
Merge 205e3f6042 into 6e7ac0544e 2025-02-20 06:29:06 +01:00
tuzi3040 6e7ac0544e
fix(agnoster): print white text over black for light theme only (#12983) 2025-02-19 12:37:18 +01:00
Brian Liotti 205e3f6042
added speedtest-cli plugin 2025-01-01 10:14:11 -05:00
2 changed files with 37 additions and 4 deletions

View File

@ -0,0 +1,27 @@
_speedtest_cli_completions() {
local state
typeset -A opt_args
_arguments \
'--no-download[Do not perform download test]' \
'--no-upload[Do not perform upload test]' \
'--single[Only use a single connection instead of multiple]' \
'--bytes[Display values in bytes instead of bits]' \
'--share[Generate a URL to the speedtest.net share results image]' \
'--simple[Suppress verbose output, only show basic information]' \
'--csv[Suppress verbose output, only show basic information in CSV format]' \
'--csv-delimiter[Single character delimiter for CSV output]:delimiter:,' \
'--csv-header[Print CSV headers]' \
'--json[Suppress verbose output, show basic information in JSON format]' \
'--list[Display a list of speedtest.net servers sorted by distance]' \
'--server[Specify a server ID to test against]:server ID:' \
'--exclude[Exclude a server from selection]:server ID:' \
'--mini[URL of the Speedtest Mini server]:URL:' \
'--source[Source IP address to bind to]:IP address:' \
'--timeout[HTTP timeout in seconds]:timeout in seconds:' \
'--secure[Use HTTPS instead of HTTP for speedtest.net servers]' \
'--no-pre-allocate[Do not pre-allocate upload data]' \
'--version[Show the version number and exit]'
}
compdef _speedtest_cli_completions speedtest-cli

View File

@ -35,8 +35,14 @@
CURRENT_BG='NONE'
case ${SOLARIZED_THEME:-dark} in
light) CURRENT_FG='white';;
*) CURRENT_FG='black';;
light)
CURRENT_FG='white'
CURRENT_DEFAULT_FG='white'
;;
*)
CURRENT_FG='black'
CURRENT_DEFAULT_FG='default'
;;
esac
### Theme Configuration Initialization
@ -48,7 +54,7 @@ esac
: ${AGNOSTER_DIR_BG:=blue}
# user@host
: ${AGNOSTER_CONTEXT_FG:=white}
: ${AGNOSTER_CONTEXT_FG:=${CURRENT_DEFAULT_FG}}
: ${AGNOSTER_CONTEXT_BG:=black}
# Git related
@ -85,7 +91,7 @@ esac
: ${AGNOSTER_STATUS_RETVAL_FG:=red}
: ${AGNOSTER_STATUS_ROOT_FG:=yellow}
: ${AGNOSTER_STATUS_JOB_FG:=cyan}
: ${AGNOSTER_STATUS_FG:=white}
: ${AGNOSTER_STATUS_FG:=${CURRENT_DEFAULT_FG}}
: ${AGNOSTER_STATUS_BG:=black}
## Non-Color settings - set to 'true' to enable