Fix "help printf" on --features=embed-data builds

This commit is contained in:
Johannes Altmanninger
2025-05-08 09:13:46 +02:00
parent 786239d280
commit ecefce2ea8

View File

@@ -1,5 +1,5 @@
function __fish_print_commands --description "Print a list of documented fish commands"
if test -d $__fish_data_dir/man/man1/
if set -q __fish_data_dir[1] && test -d $__fish_data_dir/man/man1/
for file in $__fish_data_dir/man/man1/**.1*
string replace -r '.*/' '' -- $file |
string replace -r '.1(.gz)?$' '' |