mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Improve --help and --complete argument handling
This commit is contained in:
@@ -2,8 +2,11 @@
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
# Load internal utility functions.
|
||||
source "$TMUXIFIER/lib/util.sh"
|
||||
|
||||
# Provide tmuxifier help
|
||||
if [ "$1" == "--help" ]; then
|
||||
if calling-help "$@"; then
|
||||
echo "usage: tmuxifier edit-window <layout_name>
|
||||
|
||||
Aliases: edit-win, ewin, ew
|
||||
@@ -13,7 +16,7 @@ Open specified window layout for editing in \$EDITOR."
|
||||
fi
|
||||
|
||||
# Provide tmuxifier completions
|
||||
if [ "$1" == "--complete" ]; then
|
||||
if calling-complete "$@"; then
|
||||
for item in $(tmuxifier-list-windows); do
|
||||
echo "$item"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user