Files
tmuxifier/libexec/tmuxifier-help

32 lines
910 B
Bash
Executable File

#! /usr/bin/env bash
set -e
[ -n "$TMUXIFIER_DEBUG" ] && set -x
case $1 in
"" )
echo "Usage: tmuxifier <command> [<args>]
Some useful tmuxifier commands are:
session Load the specified session layout.
window Load the specified window layout into current session.
list List all session and window layouts.
list-sessions List session layouts.
list-windows List window layouts.
commands List all tmuxifier commands.
See 'tmuxifier help <command>' for information on a specific command."
;;
* )
command_path="$(command -v "tmuxifier-$1" || true)"
if [ -n "$command_path" ]; then
echo "Sorry, the \`$1' command isn't documented yet."
echo
echo "You can view the command's source here:"
echo "$command_path"
echo
else
echo "tmuxifier: no such command \`$1'"
fi
;;
esac