What does autoload do in zsh? -


i wasn't able find documentation used autoload command in zsh. can explain in plain english?

a bit more specific: autoloading of modules mean, example in line:

 autoload -uz vcs_info 

what do?


i've tried autoload --help, man autoload, googling - no success. thanks!

the autoload feature not available in bash, in ksh (korn shell) , zsh. on zsh see man zshbuiltins.

functions called in same way other command. there can name conflict between program , function. autoload mark name being function rather external program. function has in file on own, filename same function name.

autoload -uz vcs_info 

the -u means mark function vcs_info autoloading , suppress alias expansion. -z means use zsh (rather ksh) style. see functions command.

for more detail see http://zsh.sourceforge.net/doc/release/functions.html.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -