aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_print_help.fish
blob: 88a35b4ba95816bcdfc484291e2b6cf938fc3380 (plain)
1
2
3
4
5
6
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