mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
23 lines
454 B
Bash
Executable File
23 lines
454 B
Bash
Executable File
#! /usr/bin/env bash
|
|
set -e
|
|
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
|
|
|
# Provide tmuxifier help
|
|
if [ "$1" == "--help" ]; then
|
|
echo "usage: tmuxifier commands
|
|
|
|
List all available commands, includes internal commands not intended for
|
|
normal use by users."
|
|
exit
|
|
fi
|
|
|
|
shopt -s nullglob
|
|
|
|
{ for path in ${PATH//:/$'\n'}; do
|
|
for command in "${path}/tmuxifier-"*; do
|
|
command="${command##*tmuxifier-}"
|
|
echo "$command"
|
|
done
|
|
done
|
|
} | sort | uniq
|