https://github.com/unhammer/apertium-completion
bash_completion.d files for apertium, VISL CG-3, HFST
https://github.com/unhammer/apertium-completion
apertium bash-completion completion
Last synced: 4 months ago
JSON representation
bash_completion.d files for apertium, VISL CG-3, HFST
- Host: GitHub
- URL: https://github.com/unhammer/apertium-completion
- Owner: unhammer
- Created: 2010-02-13T12:59:06.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2023-08-25T11:51:58.000Z (almost 2 years ago)
- Last Synced: 2024-12-27T00:41:37.044Z (6 months ago)
- Topics: apertium, bash-completion, completion
- Language: Shell
- Homepage: http://wiki.apertium.org/wiki/Bash_completion
- Size: 15.6 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
If you want "intelligent" bash completion on TAB for [[http://wiki.apertium.org/wiki/Main_Page][apertium]],
[[http://wiki.apertium.org/wiki/Lttoolbox][lttoolbox]], [[http://wiki.apertium.org/wiki/Vislcg3][vislcg3]] and [[http://wiki.apertium.org/wiki/Hfst][hfst]], do e.g.:: $ git clone https://github.com/unhammer/apertium-completion.git ~/apertium-completion
and add this to your ~/.bashrc:
#+BEGIN_SRC sh
if ! shopt -oq posix && \
[[ ( -z "$INSIDE_EMACS" || "$EMACS_BASH_COMPLETE" = "t" ) ]]; then
for f in ~/apertium-completion/completions/*; do
[[ -f $f ]] && source "$f"
done
fi
#+END_SRCAlternatively, if your OS sources files from e.g.
=/etc/bash_completion_d= automatically, just =sudo cp
~/apertium-completion/completions/* /etc/bash_completion_d/= (then you
don't have to add anything to =~/.bashrc=).Now open a new terminal and try typing =apertium= and press TAB twice,
you should get a list of installed language pairs; =apertium -d .= and
TAB twice should show you a list of the possible translation modes in
this directory; etc.