mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Add version and basic help information
This commit is contained in:
31
libexec/tmuxifier-help
Executable file
31
libexec/tmuxifier-help
Executable file
@@ -0,0 +1,31 @@
|
||||
#! /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
|
||||
Reference in New Issue
Block a user