add debug

This commit is contained in:
Jakobus Schürz 2021-02-02 10:40:04 +01:00
parent df9a7c3ec4
commit 15e65e15a9

View file

@ -80,8 +80,12 @@ if ! $SSHS; then
#cd ${HOME}
# Start tmux if not defined as STARTTMUX in bashrc
logwarn -n "attach tmux?"
if test ! $TMUX && test $SSH_TTY && test $TERM != screen && test $(systemctl status tmux@${USER}.service 1>/dev/null 2>&1; echo $? ) -eq 0; then
STARTTMUXDEFAULT=${STARTTMUXREMOTEDEFAULT}
STARTTMUXDEFAULT=${STARTTMUXREMOTEDEFAULT}
logwarn "${STARTTMUXDEFAULT}"
else
logwarn "no"
fi
unset -f pathmunge