mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-22 08:20:59 +02:00
zsh paste magic
This commit is contained in:
parent
38aec72900
commit
0f0f986fa4
12
.zshrc
12
.zshrc
@ -1,4 +1,8 @@
|
|||||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
|
|
||||||
|
# so that i can autoload -Uz local functions
|
||||||
|
fpath=( ~/.config/zsh/functions $fpath)
|
||||||
|
|
||||||
# Virtualenv support
|
# Virtualenv support
|
||||||
function virtual_env_prompt () {
|
function virtual_env_prompt () {
|
||||||
REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) }
|
REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) }
|
||||||
@ -190,3 +194,11 @@ export JOBS=8
|
|||||||
function vless {
|
function vless {
|
||||||
/usr/share/nvim/runtime/macros/less.sh $@
|
/usr/share/nvim/runtime/macros/less.sh $@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Paste handling
|
||||||
|
autoload -Uz bracketed-paste-magic
|
||||||
|
zle -N bracketed-paste bracketed-paste-magic
|
||||||
|
|
||||||
|
autoload -Uz bracketed-paste-url-magic
|
||||||
|
zle -N bracketed-paste bracketed-paste-url-magic
|
||||||
|
Loading…
Reference in New Issue
Block a user