theniceboy/zsh/fzf/cani
2020-03-04 22:48:38 -08:00

10 lines
343 B
Text
Executable file

### Caniuse + FZF
# caniuse for quick access to global support list
# also runs the `caniuse` command if installed
local feat=$(ciu | sort -rn | eval "fzf ${FZF_DEFAULT_OPTS} --ansi --header='[caniuse:features]'" | sed -e 's/^.*%\ *//g' | sed -e 's/ .*//g')
if which caniuse &> /dev/null; then
if [[ $feat ]] then; caniuse $feat; fi
fi