diff --git a/.gitignore b/.gitignore
index e765cea..cd19a9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,5 +8,6 @@ vendor/*/*
config/.history
Thumbs.db
*.exe
+*.dll
build/
Version v*
diff --git a/config/ConEmu.xml b/config/ConEmu.xml
index 7ffe3ba..5786fba 100644
--- a/config/ConEmu.xml
+++ b/config/ConEmu.xml
@@ -77,7 +77,7 @@
-
+
diff --git a/launcher/CmderLauncher.sln b/launcher/CmderLauncher.sln
index 74e5bdd..9b4bc65 100644
--- a/launcher/CmderLauncher.sln
+++ b/launcher/CmderLauncher.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
-VisualStudioVersion = 14.0.22823.1
+VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CmderLauncher", "CmderLauncher.vcxproj", "{4A8485A5-B7DD-4C44-B7F6-3E2765DD0CD3}"
EndProject
diff --git a/launcher/CmderLauncher.vcxproj b/launcher/CmderLauncher.vcxproj
index d9390f5..d9012ba 100644
--- a/launcher/CmderLauncher.vcxproj
+++ b/launcher/CmderLauncher.vcxproj
@@ -14,7 +14,6 @@
{4A8485A5-B7DD-4C44-B7F6-3E2765DD0CD3}
Win32Proj
CmderLauncher
- 8.1
@@ -73,6 +72,7 @@
WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)
true
Size
+ MultiThreaded
Windows
@@ -85,7 +85,9 @@
-
+
+ RC
+
diff --git a/vendor/profile.ps1 b/vendor/profile.ps1
index fcaa56e..dad67b7 100644
--- a/vendor/profile.ps1
+++ b/vendor/profile.ps1
@@ -1,4 +1,9 @@
-# Add Cmder modules directory to the autoload path.
+# Compatibility with PS major versions <= 2
+if(!$PSScriptRoot) {
+ $PSScriptRoot = Split-Path $Script:MyInvocation.MyCommand.Path
+}
+
+# Add Cmder modules directory to the autoload path.
$CmderModulePath = Join-path $PSScriptRoot "psmodules/"
if( -not $env:PSModulePath.Contains($CmderModulePath) ){
@@ -6,7 +11,13 @@ if( -not $env:PSModulePath.Contains($CmderModulePath) ){
}
try {
+ # Check if git is on PATH, i.e. Git already installed on system
Get-command -Name "git" -ErrorAction Stop >$null
+} catch {
+ $env:Path += ";$env:CMDER_ROOT\vendor\msysgit\bin"
+}
+
+try {
Import-Module -Name "posh-git" -ErrorAction Stop >$null
$gitStatus = $true
} catch {
@@ -40,7 +51,6 @@ function global:prompt {
# Load special features come from posh-git
if ($gitStatus) {
- Enable-GitColors
Start-SshAgent -Quiet
}