mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Provide shell-completion for the completions command, cause why not?
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
# Provide tmuxifier completions
|
||||
if [ "$1" == "--complete" ]; then
|
||||
tmuxifier-commands
|
||||
exit
|
||||
fi
|
||||
|
||||
has-completions() {
|
||||
grep -i "^# provide tmuxifier completions" "$1" >/dev/null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user