Last active
August 29, 2015 14:01
-
-
Save nowk/b7d1835b539407651492 to your computer and use it in GitHub Desktop.
Poor mans .nvmrc and other preloaded requirements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.ondirrc | |
enter ~/Documents/(<your|folder|names|here)/([^/]+) | |
[[ -s $HOME/<pathtoyour>/ondirrc.sh ]] && . $HOME/<pathtoyour>/ondirrc.sh | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reload for tmux | |
if [ -n "$TMUX" ]; then | |
[[ -s $HOME/<pathtoyour>/ondirrc.sh ]] && . $HOME/<pathtoyour>/ondirrc.sh | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'checking for .ondirrc...' | |
if [ -r .ondirrc ]; then | |
. ./.ondirrc | |
echo 'loaded .ondirrc' | |
else | |
echo 'no .ondirc, goodbye.' | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# individual project .ondirrc | |
export FOO=bar | |
nvm use stable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment