reserve rbsh and auto tmux session for WSL

This commit is contained in:
2024-01-25 14:06:13 +01:00
parent 6de1045383
commit 293a7e9f07

29
.termrc
View File

@@ -85,20 +85,19 @@ if [ -n "$WSLENV" ] ; then
echo "Serial logs will be written to $SERIAL_LOGS" echo "Serial logs will be written to $SERIAL_LOGS"
fi fi
fi fi
# Automatically creates and attach a 'main' tmux session. If already created,
# attach in a new window instead. If running from tmux, does nothing.
if [ -z "$TMUX" ] ; then
#if [ tmux ls -F "#S" | grep $HRNX_TMUX_SESSIONNAME ] ; then
tmux new-session -A -s $HRNX_TMUX_SESSIONNAME
fi
# Env for 'mgnt toolbox' (rbsh, rbcli, etc)
export RBIP="192.168.13.203"
export RBLOG="administrator"
export RBPASS="administrator"
export RBROOTPASS="ekitool"
fi fi
# Automatically creates and attach a 'main' tmux session. If already created,
# attach in a new window instead. If running from tmux, does nothing.
if [ -z "$TMUX" ] ; then
#if [ tmux ls -F "#S" | grep $HRNX_TMUX_SESSIONNAME ] ; then
tmux new-session -A -s $HRNX_TMUX_SESSIONNAME
fi
# Env for 'mgnt toolbox' (rbsh, rbcli, etc)
export RBIP="192.168.13.203"
export RBLOG="administrator"
export RBPASS="administrator"
export RBROOTPASS="ekitool"