mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Re-implement all libexec executables as bash functions, with the goal of being able build a single standalone execuable bash script for tmuxifier.
18 lines
543 B
Bash
18 lines
543 B
Bash
# Setup layout path.
|
|
if [ -z "${TMUXIFIER_LAYOUT_PATH}" ]; then
|
|
export TMUXIFIER_LAYOUT_PATH="${TMUXIFIER}/layouts"
|
|
else
|
|
export TMUXIFIER_LAYOUT_PATH="${TMUXIFIER_LAYOUT_PATH%/}"
|
|
fi
|
|
|
|
# Add tmuxifier's internal commands to PATH.
|
|
export PATH="$TMUXIFIER/libexec:$PATH"
|
|
|
|
# Load utility functions.
|
|
source "$TMUXIFIER/lib/util.sh"
|
|
|
|
# Load command functions from lib/commands/ directory directly.
|
|
source "$TMUXIFIER/lib/commands/alias.sh"
|
|
source "$TMUXIFIER/lib/commands/resolve-command-path.sh"
|
|
source "$TMUXIFIER/lib/commands/tmux-version.sh"
|