-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
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,8 @@ | ||
#compdef timertab | ||
# This is a Zsh completion script. | ||
# It should be placed in /usr/share/zsh/functions/Completion/Zsh | ||
# If you intall timertab from the AUR, that will be done automatically | ||
|
||
local -a subcmds | ||
subcmds=($(timertab list_opts)) | ||
_describe 'command' subcmds |
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,18 @@ | ||
#!/usr/bin/env bash | ||
# This is a Bash completion script | ||
# It should be placed in /etc/bash_completion.d/ | ||
# If you intall timertab from the AUR, that will be done automatically | ||
|
||
abs_path="/usr/bin/timertab" | ||
|
||
_script() { | ||
local cur commands | ||
commands=$($abs_path list_opts) | ||
cur="${COMP_WORDS[COMP_CWORD]}" | ||
COMPREPLY=() | ||
COMPREPLY=( $(compgen -W "${commands}" -- ${cur}) ) | ||
|
||
return 0 | ||
} | ||
|
||
complete -o nospace -F _script timertab |