mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Update help and error messages with more details
This commit is contained in:
@@ -43,22 +43,44 @@ See 'tmuxifier help <command>' for information on a specific command."
|
|||||||
"load-session" )
|
"load-session" )
|
||||||
echo "usage: tmuxifier load-session <layout_name>
|
echo "usage: tmuxifier load-session <layout_name>
|
||||||
|
|
||||||
|
Aliases: session, ses, s
|
||||||
|
|
||||||
Create a session using the session layout, unless the session already exists
|
Create a session using the session layout, unless the session already exists
|
||||||
in which case, we simply switch to the existing one."
|
in which case, we simply switch to the existing one."
|
||||||
;;
|
;;
|
||||||
"load-window" )
|
"load-window" )
|
||||||
echo "usage: tmuxifier load-window <layout_name>
|
echo "usage: tmuxifier load-window <layout_name>
|
||||||
|
|
||||||
|
Aliases: window, win, w
|
||||||
|
|
||||||
Create a new window using the specified window layout in the current session."
|
Create a new window using the specified window layout in the current session."
|
||||||
;;
|
;;
|
||||||
|
"new-session" )
|
||||||
|
echo "usage: tmuxifier new-session <layout_name>
|
||||||
|
|
||||||
|
Aliases: new-ses, ns
|
||||||
|
|
||||||
|
Create a new session layout and open it for editing in \$EDITOR."
|
||||||
|
;;
|
||||||
|
"new-window" )
|
||||||
|
echo "usage: tmuxifier new-window <layout_name>
|
||||||
|
|
||||||
|
Aliases: new-win, ws
|
||||||
|
|
||||||
|
Create a new window layout and open it for editing in \$EDITOR."
|
||||||
|
;;
|
||||||
"edit-session" )
|
"edit-session" )
|
||||||
echo "usage: tmuxifier edit-session <layout_name>
|
echo "usage: tmuxifier edit-session <layout_name>
|
||||||
|
|
||||||
|
Aliases: edit-ses, es
|
||||||
|
|
||||||
Open specified session layout for editing in \$EDITOR."
|
Open specified session layout for editing in \$EDITOR."
|
||||||
;;
|
;;
|
||||||
"edit-window" )
|
"edit-window" )
|
||||||
echo "usage: tmuxifier edit-window <layout_name>
|
echo "usage: tmuxifier edit-window <layout_name>
|
||||||
|
|
||||||
|
Aliases: edit-win, ew
|
||||||
|
|
||||||
Open specified window layout for editing in \$EDITOR."
|
Open specified window layout for editing in \$EDITOR."
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ if [ "$1" == "--complete" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "$(tmuxifier-help load-session)" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Load runtime functions.
|
# Load runtime functions.
|
||||||
source "$TMUXIFIER/runtime.sh"
|
source "$TMUXIFIER/runtime.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ if [ "$1" == "--complete" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "$(tmuxifier-help load-window)" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Load runtime functions.
|
# Load runtime functions.
|
||||||
source "$TMUXIFIER/runtime.sh"
|
source "$TMUXIFIER/runtime.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ set -e
|
|||||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "usage: tmuxifier new-session <layout_name>" >&2
|
echo "$(tmuxifier-help new-session)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ set -e
|
|||||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "usage: tmuxifier new-window <layout_name>" >&2
|
echo "$(tmuxifier-help new-window)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user