diff options
Diffstat (limited to 'share/functions/__fish_print_help.fish')
-rw-r--r-- | share/functions/__fish_print_help.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/functions/__fish_print_help.fish b/share/functions/__fish_print_help.fish new file mode 100644 index 00000000..88a35b4b --- /dev/null +++ b/share/functions/__fish_print_help.fish @@ -0,0 +1,7 @@ + +function __fish_print_help + set -l help (nroff -man $__fish_datadir/man/$argv.1) + set -l lines (count $help) + echo + printf "%s\n" $help| tail -n (expr $lines - 5 ) | head -n (expr $lines - 8) +end
\ No newline at end of file |