From fb8f16373f6c20b729b16151436689ce10e9d489 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 27 Dec 2012 00:46:54 -0800 Subject: [PATCH] Teach fish_print_commands how to use __fish_datadir --- share/functions/__fish_print_commands.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_print_commands.fish b/share/functions/__fish_print_commands.fish index 9056bc525..21c0876d3 100644 --- a/share/functions/__fish_print_commands.fish +++ b/share/functions/__fish_print_commands.fish @@ -1,5 +1,5 @@ function __fish_print_commands --description "Print a list of documented fish commands" if test -d $__fish_datadir/man/man1/ - find /usr/share/fish/man/man1/ -type f -name \*.1 -execdir basename '{}' .1 ';' + find $__fish_datadir/man/man1/ -type f -name \*.1 -execdir basename '{}' .1 ';' end end