Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Speed up new shell startup #48

Closed
wants to merge 1 commit into from
Closed

Speed up new shell startup #48

wants to merge 1 commit into from

Conversation

danmactough
Copy link

Only run chpwd when the shell loads if there is a .node-version file in the current directory.

This speeds up opening a new terminal when the working directory doesn't have a .node-version file.

The hook still runs when you change directories.

Only run chpwd when the shell loads if there is a .node-version file in the current directory.

This speeds up opening a new terminal when the working directory doesn't have a .node-version file.

The hook still runs when you change directories.
@coveralls
Copy link

coveralls commented Sep 14, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 2871c64 on danmactough:master into 24e1b1d on wbyoung:master.

@ljharb
Copy link

ljharb commented Sep 14, 2016

Does avn not look for .node-version files in parent directories as well, like .nvmrc?

@danmactough
Copy link
Author

Does avn not look for .node-version files in parent directories as well, like .nvmrc?

Ah. Indeed it does. Never relied on that feature. 😜

@wbyoung
Copy link
Owner

wbyoung commented Sep 14, 2016

Thanks for the thought, though, @danmactough.

@danmactough
Copy link
Author

Haha no problem @wbyoung thanks for this awesome tool that makes my life better 👏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants