mod: rearrangement for autoload functions.d

This commit is contained in:
Sebastian Tramp 2011-02-07 19:50:26 +01:00
parent c8a98529d1
commit 7bcf9dc74e
2 changed files with 9 additions and 0 deletions

View file

@ -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
View file

@ -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