mod: rearrangement for autoload functions.d
This commit is contained in:
parent
c8a98529d1
commit
7bcf9dc74e
|
@ -4,6 +4,14 @@
|
||||||
# tab completion configuration
|
# tab completion configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# add an autoload function path, if directory exists
|
||||||
|
# http://www.zsh.org/mla/users/2002/msg00232.html
|
||||||
|
functionsd="$HOME/.zsh/functions.d"
|
||||||
|
if [[ -d "$functionsd" ]] {
|
||||||
|
fpath=( $functionsd $fpath )
|
||||||
|
autoload -U $functionsd/*(:t)
|
||||||
|
}
|
||||||
|
|
||||||
# load completions system
|
# load completions system
|
||||||
zmodload -i zsh/complist
|
zmodload -i zsh/complist
|
||||||
|
|
||||||
|
|
1
zshrc
1
zshrc
|
@ -31,6 +31,7 @@ sources+="$HOME/.zsh/$systemFile.zsh"
|
||||||
# Finally include the private.zsh file
|
# Finally include the private.zsh file
|
||||||
sources+="$HOME/.zsh/private.zsh"
|
sources+="$HOME/.zsh/private.zsh"
|
||||||
|
|
||||||
|
# try to include all sources
|
||||||
foreach file (`echo $sources`)
|
foreach file (`echo $sources`)
|
||||||
if [[ -a $file ]]; then
|
if [[ -a $file ]]; then
|
||||||
source $file
|
source $file
|
||||||
|
|
Loading…
Reference in a new issue