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:
7
.termrc
7
.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
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Serial port connected"
|
||||
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
|
||||
|
||||
|
||||
@@ -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 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 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 DoubleClick1Pane select-pane \; send -X select-word
|
||||
bind -T copy-mode-vi TripleClick1Pane select-pane \; send -X select-line
|
||||
|
||||
Reference in New Issue
Block a user