File: openmsx-complete.bash

package info (click to toggle)
openmsx 20.0%2Bdfsg-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,544 kB
  • sloc: cpp: 236,922; xml: 49,948; tcl: 15,056; python: 5,385; perl: 281; sh: 77; makefile: 53
file content (19 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This file enables openmsx specific tab-completion in the bash shell.
#
# To enable it system-wide, copy and rename this file to
#    /etc/bash_completion.d/openmsx
# To enable it only for the current user, source this file from e.g. your
#    ~/.bashrc
# file.
#
# This needs an openMSX version newer than openmsx-0.9.1 (TODO replace with
# actual version number once that number is known).

_openmsx_complete()
{
	local cur tmp
	cur=${COMP_WORDS[COMP_CWORD]}
	tmp=$(openmsx -bash $3)
	COMPREPLY=($(compgen -W '$tmp' -- "$cur"))
}
complete -f -F _openmsx_complete openmsx