mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +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
|
if [ -z "$1" ]; then
|
||||||
echo "$(tmuxifier-help completions)" >&2
|
echo "$(tmuxifier-help completions $@)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "$(tmuxifier-help edit-session)" >&2
|
echo "$(tmuxifier-help edit-session $@)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "$(tmuxifier-help edit-window)" >&2
|
echo "$(tmuxifier-help edit-window $@)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ fi
|
|||||||
|
|
||||||
if has-help "$command_path"; then
|
if has-help "$command_path"; then
|
||||||
shift
|
shift
|
||||||
exec "$command_path" --help "$@"
|
exec "$command_path" "$@" --help
|
||||||
else
|
else
|
||||||
command="$(basename "$command_path")"
|
command="$(basename "$command_path")"
|
||||||
command="${command/tmuxifier\-/}"
|
command="${command/tmuxifier\-/}"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ if calling-complete "$@"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "$(tmuxifier-help load-session)" >&2
|
echo "$(tmuxifier-help load-session $@)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "$(tmuxifier-help load-window)" >&2
|
echo "$(tmuxifier-help load-window $@)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "$(tmuxifier-help new-session)" >&2
|
echo "$(tmuxifier-help new-session $@)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ if calling-complete "$@"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "$(tmuxifier-help new-window)" >&2
|
echo "$(tmuxifier-help new-window $@)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user