-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #855 from dadav/develop
Bug fixes
- Loading branch information
Showing
54 changed files
with
1,813 additions
and
98 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
builder/data/etc/bash_completion.d/pwnagotchi_completion.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
_show_complete() | ||
{ | ||
local cur opts node_names all_options opt_line | ||
all_options=" | ||
pwnagotchi -h --help -C --config -U --user-config --manual --skip-session --clear --debug --version --print-config {plugins} | ||
pwnagotchi plugins -h --help {list,install,enable,disable,uninstall,update,upgrade} | ||
pwnagotchi plugins list -i --installed -h --help | ||
pwnagotchi plugins install -h --help | ||
pwnagotchi plugins uninstall -h --help | ||
pwnagotchi plugins enable -h --help | ||
pwnagotchi plugins disable -h --help | ||
pwnagotchi plugins update -h --help | ||
pwnagotchi plugins upgrade -h --help | ||
" | ||
COMPREPLY=() | ||
cur="${COMP_WORDS[COMP_CWORD]}" | ||
cmd="${COMP_WORDS[@]:0:${#COMP_WORDS[@]}-1}" | ||
opt_line="$(grep -m1 "$cmd" <<<$all_options)" | ||
if [[ ${cur} == -* ]] ; then | ||
opts="$(echo $opt_line | tr ' ' '\n' | awk '/^ *-/{gsub("[^a-zA-Z0-9-]","",$1);print $1}')" | ||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) | ||
return 0 | ||
fi | ||
|
||
opts="$(echo $opt_line | grep -Po '{\K[^}]+' | tr ',' '\n')" | ||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) | ||
} | ||
|
||
complete -F _show_complete pwnagotchi |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '1.5.2' | ||
__version__ = '1.5.3' |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.