This plugin binds the alt-c (copy), alt-v (paste), alt-x (cut) keyboard shortcut to a commands: copy-region-as-kill, yank, kill-region.
Execute command is remaped to Alt-Shift-X.
Text selection in terminal Shift-arrows:
- Selection is cleared when using a navigation key (arrow, home, end) WITHOUT shift
- Backspace and Del delete an active selection
- Selection is extended to the next/previous word when using Ctrl+Shift+Left/Ctrl+Shift+Right
- Shift+Home and Shift+End extend the selection to the beginning and end of line respectively. Ctrl+Shift+Home and Ctrl+Shift+End do the same.
plugins=(... alt-and-select)
Install using git clone.
cd ~/.oh-my-zsh/plugins && git clone https://github.com/rastislavcore/alt-and-select.git
Or (alternative) download the file using wget.
mkdir -p ~/.oh-my-zsh/plugins/alt-and-select && wget https://raw.githubusercontent.com/rastislavcore/alt-and-select/master/alt-and-select.plugin.zsh -nc --no-dns-cache -O ->> ~/.oh-my-zsh/plugins/alt-and-select
Activate the plugin in Oh My Zsh (~/.zshrc)
plugins=(... alt-and-select)