Enable passing custom arguments to tmux

Custom arguments can now be passed to tmux by setting the
TMUXIFIER_TMUX_OPTS environment variable.
This commit is contained in:
2014-01-29 08:10:46 +00:00
parent 966e500b40
commit e231f2d642
4 changed files with 40 additions and 19 deletions

View File

@@ -14,7 +14,7 @@ Outputs the name of the current Tmux session."
fi
if [ -n "$TMUX" ]; then
for item in $(tmux list-pane -F "#{session_name}");do
for item in $(tmuxifier-tmux list-pane -F "#{session_name}");do
echo $item
exit 0
done

5
libexec/tmuxifier-tmux Executable file
View File

@@ -0,0 +1,5 @@
#! /usr/bin/env bash
set -e
[ -n "$TMUXIFIER_DEBUG" ] && set -x
tmux $TMUXIFIER_TMUX_OPTS "$@"