mod: rearrangement for autoload functions.d
This commit is contained in:
parent
c8a98529d1
commit
7bcf9dc74e
2 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,14 @@
|
|||
# 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
|
||||
zmodload -i zsh/complist
|
||||
|
||||
|
|
1
zshrc
1
zshrc
|
@ -31,6 +31,7 @@ sources+="$HOME/.zsh/$systemFile.zsh"
|
|||
# Finally include the private.zsh file
|
||||
sources+="$HOME/.zsh/private.zsh"
|
||||
|
||||
# try to include all sources
|
||||
foreach file (`echo $sources`)
|
||||
if [[ -a $file ]]; then
|
||||
source $file
|
||||
|
|
Loading…
Reference in a new issue