mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
wip(commands): re-implement core commands as bash functions
Re-implement all libexec executables as bash functions, with the goal of being able build a single standalone execuable bash script for tmuxifier.
This commit is contained in:
17
lib/load.sh
Normal file
17
lib/load.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user