Bash completion: Difference between revisions

→‎Usage: completion of aircraft names
(→‎Usage: completion of aircraft names)
Line 33: Line 33:
* $FG_ROOT, $FG_SCENERY, $FG_AIRCRAFT environment variables
* $FG_ROOT, $FG_SCENERY, $FG_AIRCRAFT environment variables
* a hardcoded list of paths
* a hardcoded list of paths
=== Aircrafts ===
The names of aircrafts will be completed after the --aircraft key.
The aircraft directory is detected the same way as FG_ROOT. First the script tries to find --fg-aircraft on the command line and in ~/.fgfsrc, then checks the $FG_AIRCRAFT environment variable, and if everything fails uses $FG_ROOT/Aircraft.


=== Carriers ===
=== Carriers ===
172

edits