This file will add bash completions that give tab completion to the OpenFst command line flags and enumerable value types.

Three types of completions are created based on the flag’s value type.

  • Flags which accept path or numeric values will complete with a trailing = character and then default to the standard completion.
  • Binary flags will complete without a trailing = character.
  • Flags which can accepte an enumerable string value will complete will a trailing = and then suggest suitable values. For example the –-arc_type= value completions will suggest log and standard as the values parameters.

To use simply source the completion file.

source openfstbc

Tested on Ubuntu 10.04 under bash 4.5. The completions don't seem to work correctly on earlier versions of bash (<4).

-- PaulDixon - 21 Feb 2011

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2011-02-21 - PaulDixon
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback