Initial commit

This commit is contained in:
2012-04-22 11:28:38 +01:00
commit ed8743facb
14 changed files with 348 additions and 0 deletions

22
libexec/tmuxifier-window Executable file
View File

@@ -0,0 +1,22 @@
#! /usr/bin/env bash
set -e
[ -n "$TMUXIFIER_DEBUG" ] && set -x
# Provide tmuxifier completions
if [ "$1" == "--complete" ]; then
for item in $(tmuxifier-list-windows); do
echo "$item"
done
exit
fi
# Load runtime functions.
source "$TMUXIFIER/runtime.sh"
if [ ! -z $TMUX ]; then
session="$(tmuxifier-current-session)"
load_window "$1"
else
echo "ERROR: 'window' command can only be used from within Tmux."
exit 1
fi