Created
April 8, 2015 04:57
-
-
Save ryumu/8e69556072402647bffb to your computer and use it in GitHub Desktop.
AtomでanyenvのPATH ref: http://qiita.com/ryumu/items/2ac1574e9540976a58e1
This file contains 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
if process.env.PATH.indexOf('anyenv') == -1 | |
anyenvPath = "#{process.env.HOME}/.anyenv" | |
if fs.existsSync(anyenvPath) | |
shims = fs.readdirSync("#{anyenvPath}/envs/").map (file)-> | |
"#{anyenvPath}/envs/#{file}/shims" | |
.join(":") | |
process.env.PATH = "#{shims}:#{process.env.PATH}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment