Created
October 31, 2015 08:38
-
-
Save ponko2/2e9890dd077b648d44c3 to your computer and use it in GitHub Desktop.
AtomをSpotlight等から起動するとopen-vimでmvimにPATHが通らない問題への応急処置
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
diff --git lib/open-vim.coffee lib/open-vim.coffee | |
index dc44209..bf41ad8 100644 | |
--- lib/open-vim.coffee | |
+++ lib/open-vim.coffee | |
@@ -4,6 +4,7 @@ OS = require 'os' | |
module.exports = | |
activate: (state) -> | |
+ process.env.PATH += ":/usr/local/bin" | |
vimType = if OS.platform() is "darwin" then "mvim" else "gvim" | |
exec "which #{vimType}", (error, stdout, stderr) => | |
if error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment