]> gitweb.fluxo.info Git - termplex.git/commitdiff
Check also for tmux profiles
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 1 Oct 2017 13:26:55 +0000 (10:26 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 1 Oct 2017 13:26:55 +0000 (10:26 -0300)
shell

diff --git a/shell b/shell
index ae1d7e3697f4df0d9b35c94aa1919e2b94f6a9a5..c5612dcb8fab7e56e72adccdb718b827e4026e69 100755 (executable)
--- a/shell
+++ b/shell
@@ -77,7 +77,7 @@ else
     window_title root
     SUDO="sudo"
     eval `shell_remote_multiplexer`
-  elif [ -z "$COMMAND" ] && [ -f "$HOME/.screen/$DEST" ]; then
+  elif [ -z "$COMMAND" ] && ( [ -f "$HOME/.screen/$DEST" ] || [ -f "$HOME/.tmux/$DEST" ] ); then
     # Local root shell
     window_title $DEST
     shell local $DEST