How to Install Bash Autocompletions

The default autocompletion includes the files in the working directory. For example, if you start a command line with a non–existing command like foobar, then press Space followed by Tab, Bash will suggest the local files:

This lesson preview is part of the The newline Guide to Bash Scripting course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.

Unlock This Course

Get unlimited access to The newline Guide to Bash Scripting, plus 70+ \newline books, guides and courses with the \newline Pro subscription.

Thumbnail for the \newline course The newline Guide to Bash Scripting