Skip to content

Commit

Permalink
Merge pull request #705 from wenzowski/patch-1
Browse files Browse the repository at this point in the history
add bundled vim to path
  • Loading branch information
Stanzilla committed Nov 12, 2015
2 parents 3a2d986 + b018f2c commit 85aaa09
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vendor/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ if( -not $env:PSModulePath.Contains($CmderModulePath) ){
$env:PSModulePath = $env:PSModulePath.Insert(0, "$CmderModulePath;")
}

try {
Get-command -Name "vim" -ErrorAction Stop >$null
} catch {
$env:Path += ";$env:CMDER_ROOT\vendor\msysgit\share\vim\vim74"
}

try {
# Check if git is on PATH, i.e. Git already installed on system
Get-command -Name "git" -ErrorAction Stop >$null
Expand Down Expand Up @@ -78,4 +84,4 @@ if(Test-Path $CmderUserProfilePath) {
} else {
Write-Host "Creating user startup file: $CmderUserProfilePath"
"# Use this file to run your own startup commands" | Out-File $CmderUserProfilePath
}
}

0 comments on commit 85aaa09

Please sign in to comment.