aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-01 10:26:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-01 10:26:55 -0300
commit512aa73872075c7670823f742e97ea32bb0d6dd4 (patch)
treed262b03c902e5cdd22ea69312a6f641c9650bb15
parent59b85dea3157f8767502c1d69fb5735414aecf24 (diff)
downloadtermplex-512aa73872075c7670823f742e97ea32bb0d6dd4.tar.gz
termplex-512aa73872075c7670823f742e97ea32bb0d6dd4.tar.bz2
Check also for tmux profiles
-rwxr-xr-xshell2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell b/shell
index ae1d7e3..c5612dc 100755
--- 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