<p>In the following example, we can parse the file <pre>~/.ssh/known_hosts</pre> to get hostnames and use this list to set autocompletion entries for some commands:
Adding autocompletion entries is easy but in ksh it is evaluated at runtime, so you should avoid time consuming evaluations, and some commands like scp or git can't receive much useful completion.</p>
<p>More information can be found about this feature <aclass="permalink"href="https://man.openbsd.org/ksh#Emacs_editing_mode">in the ksh man page</a>.</p>