mirror of
https://github.com/HerrCraziDev/dotfiles.git
synced 2026-04-20 14:34:21 +02:00
usbipd init, tmux selection clear
This commit is contained in:
9
.termrc
9
.termrc
@@ -39,8 +39,13 @@ if [ -n "$WSLENV" ] ; then
|
||||
source "$HOME/.usbipd"
|
||||
echo "Connecting serial port... (device $USB_SERIAL_HWID)"
|
||||
usbipd.exe wsl attach --hardware-id $USB_SERIAL_HWID
|
||||
usbipd.exe wsl list
|
||||
export _SERIAL_INIT
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Serial port connected"
|
||||
usbipd.exe wsl list
|
||||
export _SERIAL_INIT=1
|
||||
else
|
||||
echo "Unable to connect serial port (device $USB_SERIAL_HWID)"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user