Mercurial > dotfiles
comparison .shell.d/10.functionpath.zsh @ 284:426917c07eb1
functionpath: fix af_reloadfuncs()
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 30 Jan 2012 12:56:49 -0600 |
parents | 846d556d9619 |
children |
comparison
equal
deleted
inserted
replaced
283:533bde18976e | 284:426917c07eb1 |
---|---|
3 | 3 |
4 function af_reloadfuncs() | 4 function af_reloadfuncs() |
5 { | 5 { |
6 local f | 6 local f |
7 f=(~/.zfun/*(.)) | 7 f=(~/.zfun/*(.)) |
8 unfunction $f:t 2> /dev/null | 8 for comp in $f ; do |
9 autoload -U $f:t | 9 unfunction $f:t 2> /dev/null |
10 autoload -U $f:t | |
11 done | |
10 } | 12 } |