Skip to content

Instantly share code, notes, and snippets.

View peterjaffray's full-sized avatar
♨️
:batman: https://meet.google.com/qcj-xvov-oqv

Peter Jaffray peterjaffray

♨️
:batman: https://meet.google.com/qcj-xvov-oqv
View GitHub Profile
@peterjaffray
peterjaffray / wp.fish
Created May 2, 2023 16:44
wp-cli completions for fish cli //~/.config/fish/completions/wp.fish
function __wp_complete
set -l old_ifs $IFS
set -l cur (commandline -ct)
set IFS \n
set -l opts (wp cli completions --line=(commandline) --point=(commandline -C))
if string match -q --regex "\<file\>\s*" $opts
return (commandline -f)