mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
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:
@@ -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
5
libexec/tmuxifier-tmux
Executable file
@@ -0,0 +1,5 @@
|
||||
#! /usr/bin/env bash
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
tmux $TMUXIFIER_TMUX_OPTS "$@"
|
||||
Reference in New Issue
Block a user