Bash completion: Difference between revisions

Jump to navigation Jump to search
→‎Installation: script is now in the standard repository
m (cat: FlightGear)
(→‎Installation: script is now in the standard repository)
Line 4: Line 4:


== Installation ==
== Installation ==
You can download a completion script for the fgfs-command from [https://gitorious.org/fg-bashcomp].
A completion script is contained in the source tree of FlightGear. It is located at "scripts/completion/fg-completion.bash". [[#Usage|Usage]] documents the application of that script.
The completion script is called "fgfs". [[#Usage|Usage]] documents the application of that script.


There are two ways of installing a bash-completion script:
There are two ways of installing the bash-completion script:


=== Local Installation ===
=== Local Installation ===
Line 15: Line 14:


=== Global Installation ===
=== Global Installation ===
* put the completion script in the global bash-completion directory (on ArchLinux: /usr/share/bash-completion/completions/ )
* put the completion script in the global bash-completion directory (on ArchLinux: /usr/share/bash-completion/completions/ ) and rename it to "fgfs"
* restart your shell
* restart your shell


172

edits

Navigation menu