mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-04 03:12:16 +08:00 
			
		
		
		
	
							
								
								
									
										8
									
								
								vendor/profile.ps1
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/profile.ps1
									
									
									
									
										vendored
									
									
								
							@@ -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
 | 
			
		||||
@@ -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
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user