Mercurial > dotfiles
annotate .shell.d/10.functionpath.zsh @ 351:bef29d49d19f
safe-paste: adds support for bracketed paste mode to zsh
Since I don't use oh-my-zsh, just import their code directly with a
reference. Based on the site where I learned about this [0], it's
originally from [1], and I downloaded it from [2].
0: https://cirw.in/blog/bracketed-paste
1: http://www.zsh.org/mla/users/2011/msg00367.html
2: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/plugins/safe-paste/safe-paste.plugin.zsh
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 10 Nov 2014 09:26:04 -0500 |
parents | 426917c07eb1 |
children |
rev | line source |
---|---|
55
846d556d9619
Add a custom _hg (modified off of recent crew) and fix up function path stuff in hg to improve my hg tab completions.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
1 fpath=(~/.zfun $fpath) |
846d556d9619
Add a custom _hg (modified off of recent crew) and fix up function path stuff in hg to improve my hg tab completions.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
2 autoload -U ~/.zfun/*(:t) |
846d556d9619
Add a custom _hg (modified off of recent crew) and fix up function path stuff in hg to improve my hg tab completions.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
3 |
846d556d9619
Add a custom _hg (modified off of recent crew) and fix up function path stuff in hg to improve my hg tab completions.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
4 function af_reloadfuncs() |
846d556d9619
Add a custom _hg (modified off of recent crew) and fix up function path stuff in hg to improve my hg tab completions.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
5 { |
846d556d9619
Add a custom _hg (modified off of recent crew) and fix up function path stuff in hg to improve my hg tab completions.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
6 local f |
846d556d9619
Add a custom _hg (modified off of recent crew) and fix up function path stuff in hg to improve my hg tab completions.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
7 f=(~/.zfun/*(.)) |
284
426917c07eb1
functionpath: fix af_reloadfuncs()
Augie Fackler <durin42@gmail.com>
parents:
55
diff
changeset
|
8 for comp in $f ; do |
426917c07eb1
functionpath: fix af_reloadfuncs()
Augie Fackler <durin42@gmail.com>
parents:
55
diff
changeset
|
9 unfunction $f:t 2> /dev/null |
426917c07eb1
functionpath: fix af_reloadfuncs()
Augie Fackler <durin42@gmail.com>
parents:
55
diff
changeset
|
10 autoload -U $f:t |
426917c07eb1
functionpath: fix af_reloadfuncs()
Augie Fackler <durin42@gmail.com>
parents:
55
diff
changeset
|
11 done |
55
846d556d9619
Add a custom _hg (modified off of recent crew) and fix up function path stuff in hg to improve my hg tab completions.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
12 } |