I have written a bash-completion script that supports completion for all keys from
- Code: Select all
fgfs --help --verbose
and completion for values of:
- --ai-scenario
--aircraft
--airport
--carrier
--runway
--parkpos
--ndb, --vor, --fix
--vor-frequency, --ndb-frequency
--timeofday, --season
Check it out from: https://gitorious.org/fg-bashcomp
The settings have influence on each other. If you for example change paths in the command line (e.g. --fg-aircraft), then this will also change the search path of the autocompletion for the "--aircraft=" values.
The autocompletion first looks at the settings already written in the command line, then in ~/.fgfsrc and at last at the environment variables $FG_ROOT, $FG_SCENERY, $FG_AIRCRAFT (except some hardcoded guesses for FG_ROOT if everything else fails), to offer only valid results.
To install it, you have to put the file "fgfs" in the folder /usr/share/bash-completion/completions/ and restart your shell.
Why not giving it a try and saving time in the command line?
Please tell me, if your distribution's default FG_ROOT is not contained in /usr{/local,}/share{/games,}/{F,f}light{G,g}ear{/data,}
hamster