usbipd init, tmux selection clear

This commit is contained in:
2023-06-21 10:34:04 +02:00
parent 5a9b741354
commit b14a1524ed
2 changed files with 8 additions and 2 deletions

View File

@@ -39,8 +39,13 @@ if [ -n "$WSLENV" ] ; then
source "$HOME/.usbipd" source "$HOME/.usbipd"
echo "Connecting serial port... (device $USB_SERIAL_HWID)" echo "Connecting serial port... (device $USB_SERIAL_HWID)"
usbipd.exe wsl attach --hardware-id $USB_SERIAL_HWID usbipd.exe wsl attach --hardware-id $USB_SERIAL_HWID
if [ $? -eq 0 ]; then
echo "Serial port connected"
usbipd.exe wsl list usbipd.exe wsl list
export _SERIAL_INIT export _SERIAL_INIT=1
else
echo "Unable to connect serial port (device $USB_SERIAL_HWID)"
fi
fi fi
fi fi

View File

@@ -26,6 +26,7 @@ bind C-v paste-buffer
bind -T copy-mode-vi Enter send -X copy-selection-no-clear \; send -X copy-pipe-and-cancel "xclip -i -sel c" \; display " [tmux] copied!" bind -T copy-mode-vi Enter send -X copy-selection-no-clear \; send -X copy-pipe-and-cancel "xclip -i -sel c" \; display " [tmux] copied!"
bind -T copy-mode-vi C-c send -X copy-selection-no-clear \; send -X copy-pipe-and-cancel "xclip -i -sel c" \; display " [tmux] copied!" bind -T copy-mode-vi C-c send -X copy-selection-no-clear \; send -X copy-pipe-and-cancel "xclip -i -sel c" \; display " [tmux] copied!"
bind -T copy-mode-vi y send -X copy-selection-no-clear \; send -X copy-pipe "xclip -i -sel c" \; display " [tmux] copied!" bind -T copy-mode-vi y send -X copy-selection-no-clear \; send -X copy-pipe "xclip -i -sel c" \; display " [tmux] copied!"
bind -T copy-mode-vi c send -X clear-selection \; display " [tmux] Selection cleared"
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-no-clear bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-no-clear
bind -T copy-mode-vi DoubleClick1Pane select-pane \; send -X select-word bind -T copy-mode-vi DoubleClick1Pane select-pane \; send -X select-word
bind -T copy-mode-vi TripleClick1Pane select-pane \; send -X select-line bind -T copy-mode-vi TripleClick1Pane select-pane \; send -X select-line