mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 17:32:27 +08:00 
			
		
		
		
	
				
					committed by
					
						 Benjamin Staneck
						Benjamin Staneck
					
				
			
			
				
	
			
			
			
						parent
						
							34554d6b08
						
					
				
				
					commit
					27f51f48a4
				
			
							
								
								
									
										8
									
								
								vendor/profile.ps1
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/profile.ps1
									
									
									
									
										vendored
									
									
								
							| @@ -155,16 +155,16 @@ $CmderUserProfilePath = Join-Path $env:CMDER_ROOT "config\user-profile.ps1" | |||||||
| if (Test-Path $CmderUserProfilePath) { | if (Test-Path $CmderUserProfilePath) { | ||||||
|     # Create this file and place your own command in there. |     # Create this file and place your own command in there. | ||||||
|     . "$CmderUserProfilePath" |     . "$CmderUserProfilePath" | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| if ($ENV:CMDER_USER_CONFIG) { | if ($ENV:CMDER_USER_CONFIG) { | ||||||
|     $CmderUserProfilePath = Join-Path $ENV:CMDER_USER_CONFIG "user-profile.ps1" |     $CmderUserProfilePath = Join-Path $ENV:CMDER_USER_CONFIG "user-profile.ps1" | ||||||
|  |     if (Test-Path $CmderUserProfilePath) { | ||||||
|  |       . "$CmderUserProfilePath" | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| if (Test-Path $CmderUserProfilePath) { | if (! (Test-Path $CmderUserProfilePath) ) { | ||||||
|     . "$CmderUserProfilePath" |  | ||||||
| } else { |  | ||||||
| # This multiline string cannot be indented, for this reason I've not indented the whole block | # This multiline string cannot be indented, for this reason I've not indented the whole block | ||||||
|  |  | ||||||
| Write-Host -BackgroundColor Darkgreen -ForegroundColor White "First Run: Creating user startup file: $CmderUserProfilePath" | Write-Host -BackgroundColor Darkgreen -ForegroundColor White "First Run: Creating user startup file: $CmderUserProfilePath" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user