Last active
April 25, 2025 19:23
-
Star
(202)
You must be signed in to star a gist -
Fork
(17)
You must be signed in to fork a gist
-
-
Save magicdude4eva/2d4748f8ef3e6bf7b1591964c201c1ab to your computer and use it in GitHub Desktop.
Revisions
-
magicdude4eva revised this gist
Aug 14, 2022 . No changes.There are no files selected for viewing
-
magicdude4eva revised this gist
Feb 21, 2019 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,9 @@ 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() { OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} @@ -11,5 +17,5 @@ zstyle :bracketed-paste-magic paste-init pasteinit zstyle :bracketed-paste-magic paste-finish pastefinish ### Fix slowness of pastes source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ... -
magicdude4eva revised this gist
Feb 21, 2019 . No changes.There are no files selected for viewing
-
magicdude4eva created this gist
Feb 21, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ ### Fix slowness of pastes with zsh-syntax-highlighting.zsh pasteinit() { OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? } pastefinish() { zle -N self-insert $OLD_SELF_INSERT } zstyle :bracketed-paste-magic paste-init pasteinit zstyle :bracketed-paste-magic paste-finish pastefinish ### Fix slowness of pastes source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh