From 293a7e9f0720945a632c7d9ec57889dcdcd07a92 Mon Sep 17 00:00:00 2001 From: HerrCraziDev Date: Thu, 25 Jan 2024 14:06:13 +0100 Subject: [PATCH] reserve rbsh and auto tmux session for WSL --- .termrc | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.termrc b/.termrc index 7888b4c..62bcf7a 100644 --- a/.termrc +++ b/.termrc @@ -85,20 +85,19 @@ if [ -n "$WSLENV" ] ; then echo "Serial logs will be written to $SERIAL_LOGS" 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 + # 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 -# Env for 'mgnt toolbox' (rbsh, rbcli, etc) -export RBIP="192.168.13.203" -export RBLOG="administrator" -export RBPASS="administrator" -export RBROOTPASS="ekitool" - -