Append rather than replace terminal-overrides.
[profile.git] / .profile.d / tmux.bashrc
index 458c94f..abbbff7 100644 (file)
@@ -1,9 +1,11 @@
 # profile-requires: screen.bashrc
 # XXX: Use a module.
-tmux=$(PATH=$PATH:/comm/tmux/stable/bin find_working tmux 2>/dev/null)
+krenew=$(find_working krenew 2>/dev/null)
+tmux=$(find_working tmux 2>/dev/null)
 if [ $? = 0 ]; then
-  alias session="bigtmux $tmux has -t session 2>/dev/null && tmux attach -t session || ktmux -T $tmux -s session"
+  alias session="bigtmux $tmux has -t session 2>/dev/null && tmux attach -t session || ktmux -R $krenew -T $tmux -s session"
   if [ -n "$TMUX" ]; then
-    $tmux run-shell ktmux_helper ';' detach 2>/dev/null
+    $tmux run-shell "ktmux_helper -R $krenew" ';' detach 2>/dev/null
   fi
 fi
+unset krenew tmux