config-fish/functions/_fzf_report_file_type.fish

7 lines
261 B
Fish
Raw Normal View History

2023-03-13 00:51:19 +00:00
# helper function for _fzf_preview_file
function _fzf_report_file_type --argument-names file_path file_type --description "Explain the file type for a file."
set_color red
echo "Cannot preview '$file_path': it is a $file_type."
set_color normal
end