mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
13 lines
452 B
Fish
13 lines
452 B
Fish
|
# Wrap mimedb in a function so it does not have to be found in PATH
|
||
|
# But only if it's installed
|
||
|
if test -x $__fish_bin_dir/mimedb
|
||
|
eval "function mimedb --description 'Look up file information via the mimedb database'
|
||
|
\"$__fish_bin_dir/mimedb\" \$argv
|
||
|
end"
|
||
|
else
|
||
|
function mimedb --description 'Look up file information via the mimedb database'
|
||
|
# Create a function that simply fails, because mimedb not installed
|
||
|
return 1
|
||
|
end
|
||
|
end
|