dotfiles/zsh/plugins/fzf-completions.plugin.zsh

13 lines
309 B
Bash
Raw Normal View History

2024-07-07 14:29:58 +01:00
#!/usr/bin/env zsh
2024-02-10 22:34:30 +00:00
# cURL completions copied from https://blog.revathskumar.com/2024/02/curl-fuzzy-search-options-using-fzf.html
_fzf_complete_curl() {
_fzf_complete --header-lines=1 --prompt="curl> " -- "$@" < <(
curl -h all
)
}
_fzf_complete_curl_post() {
awk '{print $1}' | cut -d ',' -f -1
}