Skip to content

Instantly share code, notes, and snippets.

View adroste's full-sized avatar

Alexander Droste adroste

View GitHub Profile
magicdude4eva / zsh-syntax-highlighting paste performance improvement
Last active May 6, 2024 08:10
zsh-syntax-highlighting paste performance improvement
Add the following in .zshrc:
plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl)
### Fix slowness of pastes with zsh-syntax-highlighting.zsh
pasteinit() {
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
set ignorecase
set smartcase
set scrolloff=3 " 3 lines above/below cursor when scrolling
" Emulated Plugins
set surround
" set easymotion
set NERDTree
" Copy to system clipboard as well
# Create display override file to force Mac OS X to use RGB mode for Display
# see
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`