File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,19 @@ open System.IO
6
6
open System.Net
7
7
open System.Text .RegularExpressions
8
8
9
- let vimInstallDir = Environment.ExpandEnvironmentVariables( " %HOMEDRIVE%%HOMEPATH%\\ vimfiles\\ bundle\\ fsharpbinding-vim" )
10
-
11
- let vimBinDir = @" ftplugin\bin"
12
- let ftpluginDir = __ SOURCE_ DIRECTORY__ @@ " ftplugin"
13
- let autoloadDir = __ SOURCE_ DIRECTORY__ @@ " autoload"
14
- let syntaxDir = __ SOURCE_ DIRECTORY__ @@ " syntax"
15
- let ftdetectDir = __ SOURCE_ DIRECTORY__ @@ " ftdetect"
16
- let syntaxCheckersDir = __ SOURCE_ DIRECTORY__ @@ " syntax_checkers"
9
+ let homePath =
10
+ if Environment.OSVersion.Platform = PlatformID.Unix || Environment.OSVersion.Platform = PlatformID.MacOSX then
11
+ Environment.GetEnvironmentVariable( " HOME" )
12
+ else Environment.ExpandEnvironmentVariables( " %HOMEDRIVE%%HOMEPATH%" )
13
+
14
+ let vimInstallDir = homePath @@ " vimfiles/bundle/fsharpbinding-vim"
15
+
16
+ let vimBinDir = __ SOURCE_ DIRECTORY__ @@ " ftplugin/bin"
17
+ let ftpluginDir = __ SOURCE_ DIRECTORY__ @@ " ftplugin"
18
+ let autoloadDir = __ SOURCE_ DIRECTORY__ @@ " autoload"
19
+ let syntaxDir = __ SOURCE_ DIRECTORY__ @@ " syntax"
20
+ let ftdetectDir = __ SOURCE_ DIRECTORY__ @@ " ftdetect"
21
+ let syntaxCheckersDir = __ SOURCE_ DIRECTORY__ @@ " syntax_checkers"
17
22
18
23
let acArchive = " fsautocomplete.zip"
19
24
let acVersion = " 0.15.0"
You can’t perform that action at this time.
0 commit comments