mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
22 lines
408 B
Bash
Executable File
22 lines
408 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
|
|
|
|
# Load runtime functions.
|
|
source "$TMUXIFIER/runtime.sh"
|
|
|
|
if [ ! -z $TMUX ]; then
|
|
load_session "$1"
|
|
else
|
|
echo "tmuxifier: 'load-session' command can only be used from within Tmux."
|
|
exit 1
|
|
fi
|