mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
23 lines
390 B
Bash
Executable File
23 lines
390 B
Bash
Executable File
#! /usr/bin/env bash
|
|
set -e
|
|
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
|
|
|
# Provide tmuxifier completions
|
|
if [ "$1" == "--complete" ]; then
|
|
for item in $(tmuxifier-list-sessions); do
|
|
echo "$item"
|
|
done
|
|
exit
|
|
fi
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "$(tmuxifier-help load-session)" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Load runtime functions.
|
|
source "$TMUXIFIER/lib/runtime.sh"
|
|
|
|
# Load session file.
|
|
load_session "$1"
|