3 ms·
for fname in $(ls ~/.config/zsh/functions); do source $fname; done :)
by moonchild 6y ago
for fname in $(ls ~/.config/zsh/functions); do source $fname; done
:)
- skizziepop 6y agofor fname in ~/.config/zsh/functions/*; do source $fname; done will prevent issues with special chars and spaces in filenames
- OJFord 6y agoWhen are you going to run that? GP is talking about JIT loaded functions: 'that is, not defined in your shell's rc file'.
- lilyball 6y agoThat’s the exact opposite. That’s eagerly loading all defined functions. autoloading means the function isn’t loaded until it’s used.