Melchior FRANZ wrote:

Those frequently calling fgfs from a bash terminal may be interested in
a completion file for all fgfs options. Examples:

 $ fgfs <TAB><TAB>                 list all available options

 $ fgfs --timeof<TAB><TAB><TAB>    complete to --timeofday= and list all
                                   available daytimes

 $ fgfs --airc<TAB>Cr<TAB>         will autom. complete to --aircraft=Crusader

 ...



You just have to

(1) make sure that you are happy with the default "$FG_HOME" environment
   variable (that is: $HOME/.fgfs), or explicitly set a different one

(2) call the script once with the --list option (this will create the
   aircraft list under $FG_HOME/aircraft_list), and

(3) source the script from your ~/.bashrc, e.g.:
   [ -e $FG_HOME/fgfs_bash ] && source $FG_HOME/fgfs_bash


 http://members.aon.at/mfranz/flightgear/fgfs_bash  [4.4kB]
Scary stuff!  I'm guessing that 99% of the people here don't know what 
autocompletion is.  Good work. :-)

Curt.

--
Curtis Olson        http://www.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:        2f585eeea02e2c79d7b1d8c4963bae2d


_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to