Created
November 1, 2022 13:42
-
-
Save elfsternberg/1e6c64e8601887af6dd4634f20227f3a to your computer and use it in GitHub Desktop.
Bash completions for MAME
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAME_ROM_PATH="$HOME/.local/share/mame/roms" | |
_mame_completions() | |
{ | |
COMPLETIONS=$(echo $(ls "$MAME_ROM_PATH" | sed 's/\.zip$//i')) | |
COMPREPLY=$(compgen -W "$COMPLETIONS" "${COMP_WORDS[1]}") | |
} | |
complete -F _mame_completions mame |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment