Settings

Theme

Show HN: Sandboxd – speed up your bash/zshrc by lazy-loading the slow bits

github.com

13 points by benvan 10 years ago · 3 comments

Reader

brbsix 10 years ago

Bash v2.04+ does something similar, in that it lazy-loads completions. As soon as you type `git ` <kbd>Tab</kbd>, it runs `_completion_loader git`, which determines what file to source, in this case `/usr/share/bash-completion/completions/git`.

I've been on the lookout for something like this. I just clocked in all my Bash startup files at 4858 lines, so I sure could use it.

  • benvanOP 10 years ago

    > 4858 lines

    Yikes!

    I hope it's helpful - the cutdown for me was from 1.5 to .1 seconds. If you run into trouble any feedback would be much appreciated :)

bite_my_shiny_m 10 years ago

This looks pretty useful.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection