mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Alter how internal help invocation work to make life a bit easier
This commit is contained in:
@@ -24,7 +24,7 @@ has-completions() {
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "$(tmuxifier-help completions)" >&2
|
||||
echo "$(tmuxifier-help completions $@)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "$(tmuxifier-help edit-session)" >&2
|
||||
echo "$(tmuxifier-help edit-session $@)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "$(tmuxifier-help edit-window)" >&2
|
||||
echo "$(tmuxifier-help edit-window $@)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ fi
|
||||
|
||||
if has-help "$command_path"; then
|
||||
shift
|
||||
exec "$command_path" --help "$@"
|
||||
exec "$command_path" "$@" --help
|
||||
else
|
||||
command="$(basename "$command_path")"
|
||||
command="${command/tmuxifier\-/}"
|
||||
|
||||
@@ -23,7 +23,7 @@ if calling-complete "$@"; then
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "$(tmuxifier-help load-session)" >&2
|
||||
echo "$(tmuxifier-help load-session $@)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "$(tmuxifier-help load-window)" >&2
|
||||
echo "$(tmuxifier-help load-window $@)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "$(tmuxifier-help new-session)" >&2
|
||||
echo "$(tmuxifier-help new-session $@)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "$(tmuxifier-help new-window)" >&2
|
||||
echo "$(tmuxifier-help new-window $@)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user