Commit 43e4eb1bf2ab96fb4ea1fb53f993913df354db94

Stefan Sperling 2021-08-29T07:28:01

Add got(1) command tab-completion for ksh(1) to EXAMPLES section. Suggested by Clint Pachl, thanks!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/got/got.1 b/got/got.1
index 0dcc266..f269d7f 100644
--- a/got/got.1
+++ b/got/got.1
@@ -2426,6 +2426,13 @@ file.
 .Sh EXIT STATUS
 .Ex -std got
 .Sh EXAMPLES
+Enable tab-completion of
+.Nm
+command names in
+.Xr ksh 1 :
+.Pp
+.Dl $ set -A complete_got -- $(got -h 2>&1 | sed -n s/commands://p)
+.Pp
 Clone an existing Git repository for use with
 .Nm .
 .Pp