added bash tab completion

This commit is contained in:
Carson McManus 2016-08-24 11:59:28 -04:00
parent 6c2acad02f
commit a1ecb1df47
2 changed files with 16 additions and 1 deletions

13
bash-tab-completion Normal file
View file

@ -0,0 +1,13 @@
_steamguard()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--help --verbose --user --generate-code --encrypt --decrypt"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
}
complete -F _steamguard steamguard

View file

@ -15,8 +15,10 @@ install:
cp build/steamguard /usr/local/bin/
cp build/Newtonsoft.Json.dll /usr/local/bin/
cp build/SteamAuth.dll /usr/local/bin/
cp bash-tab-completion /etc/bash_completion.d/steamguard
uninstall:
rm -f /usr/local/bin/steamguard
rm -f /usr/local/bin/Newtonsoft.Json.dll
rm -f /usr/local/bin/SteamAuth.dll
rm -f /usr/local/bin/SteamAuth.dll
rm -f /etc/bash_completion.d/steamguard