added bash tab completion
This commit is contained in:
parent
6c2acad02f
commit
a1ecb1df47
2 changed files with 16 additions and 1 deletions
13
bash-tab-completion
Normal file
13
bash-tab-completion
Normal 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
|
2
makefile
2
makefile
|
@ -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 /etc/bash_completion.d/steamguard
|
||||
|
|
Loading…
Reference in a new issue