mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
26 lines
519 B
Bash
Executable File
26 lines
519 B
Bash
Executable File
#! /usr/bin/env bash
|
|
set -e
|
|
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
|
|
|
# Load internal utility functions.
|
|
source "$TMUXIFIER/lib/util.sh"
|
|
|
|
# Provide tmuxifier help
|
|
if calling-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
|