1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-12 12:21:00 +01:00

2 Commits

Author SHA1 Message Date
Robert Dober
bea0dd2ca0 feat(mix): autocomplete format command (#13012) 2025-03-20 11:30:05 +01:00
Linda TJ
34e9830dd3 fix(ranq-quote): use https for quote retrieval (#13021) 2025-03-20 11:22:12 +01:00
2 changed files with 11 additions and 1 deletions

View File

@@ -146,6 +146,16 @@ case $state in
(help)
_arguments ':feature:__task_list'
;;
(format)
_arguments -C \
'--check-formatted' \
'--dot-formatter' \
'--dry-run' \
'--force' \
'--migrate' \
'--no-exit' \
'*::file:_files'
;;
(test)
_files
;;

View File

@@ -8,7 +8,7 @@ function quote {
# Get random quote data
local data
data="$(command curl -s --connect-timeout 2 "http://www.quotationspage.com/random.php" \
data="$(command curl -s --connect-timeout 2 "https://www.quotationspage.com/random.php" \
| iconv -c -f ISO-8859-1 -t UTF-8 \
| command grep -a -m 1 'dt class="quote"')"