]> git.mxchange.org Git - flightgear.git/commitdiff
better instructions
authormfranz <mfranz>
Sat, 20 Dec 2008 12:50:03 +0000 (12:50 +0000)
committermfranz <mfranz>
Sat, 20 Dec 2008 12:50:03 +0000 (12:50 +0000)
scripts/completion/fg-completion.bash

index 6c73e0cc9c9a79a1ebc8ab6e3f5120576e57005e..89ff83d5068132ca93c39ebb03ead10445d0008a 100755 (executable)
@@ -1,18 +1,20 @@
 #!/bin/bash
-# Tab completion for FlightGear command line options.
+# Tab completion for FlightGear command line options. To use it put
+# this in your ~/.bashrc file:
 #
-# 1. define $FG_HOME (or accept the default "$HOME/.fgfs/")
+#   export FG_HOME=$HOME/.fgfs/
+#   [ -e $FG_HOME/fg-completion.bash ] && source $FG_HOME/fg-completion.bash
 #
-# 2. source this file from your ~/.bashrc:
-#
-#      [ -e $FG_HOME/fg-completion.bash ] && source $FG_HOME/fg-completion.bash
-#
-__fgfs_scriptname="fg-completion.bash"  # adapt this if you renamed this script!
+# Defining FG_HOME is only required if you don't like the default
+# "$HOME/.fgfs/". The script doesn't offer all available airports
+# for the --airport option, but only those listed in a file
+# $FG_HOME/airport.list if available, or a short default list otherwise.
 
 __fgfs_root=${FG_ROOT:-/usr/local/share/FlightGear}
 __fgfs_home=${FG_HOME:-$HOME/.fgfs}
 [ -d "$__fgfs_home" ] || mkdir -p "$__fgfs_home"
 
+
 __fgfs_apt_list="$__fgfs_home/airport.list"
 
 __fgfs_options="