mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 09:22:15 +08:00 
			
		
		
		
	Merge branch 'master' of github.com:cmderdev/cmder into user_conemu_cfg
This commit is contained in:
		| @@ -59,7 +59,7 @@ You can open multiple tabs each containing one of the following shells: | |||||||
| |Cmder|cmd.exe|Windows 'cmd.exe' shell enhanced with Git, Git aware prompt, Clink(GNU Readline), and Aliases.| | |Cmder|cmd.exe|Windows 'cmd.exe' shell enhanced with Git, Git aware prompt, Clink(GNU Readline), and Aliases.| | ||||||
| |Cmder as Admin|cmd.exe|Administrative Windows 'cmd.exe' Cmder shell.| | |Cmder as Admin|cmd.exe|Administrative Windows 'cmd.exe' Cmder shell.| | ||||||
| |PowerShell|powershell.exe|Windows PowerShell enhanced with Git and Git aware prompt .| | |PowerShell|powershell.exe|Windows PowerShell enhanced with Git and Git aware prompt .| | ||||||
| |PowerShell as Admin|powershell.exe|Administrative Windows 'powerhell.exe' Cmder shell.| | |PowerShell as Admin|powershell.exe|Administrative Windows 'powershell.exe' Cmder shell.| | ||||||
| |Bash|bash.exe|Unix/Linux like bash shell running on Windows.| | |Bash|bash.exe|Unix/Linux like bash shell running on Windows.| | ||||||
| |Bash as Admin|bash.exe|Administrative Unix/Linux like bash shell running on Windows.| | |Bash as Admin|bash.exe|Administrative Unix/Linux like bash shell running on Windows.| | ||||||
| |Mintty|bash.exe|Unix/Linux like bash shell running on Windows. See below for Mintty configuration differences| | |Mintty|bash.exe|Unix/Linux like bash shell running on Windows. See below for Mintty configuration differences| | ||||||
| @@ -91,7 +91,7 @@ User specific configuration is possible using the cmder specific shell config fi | |||||||
| |PowerShell|$ENV:CMDER_ROOT\config\user-profile.ps1| | |PowerShell|$ENV:CMDER_ROOT\config\user-profile.ps1| | ||||||
| |Bash/Mintty|$CMDER_ROOT/config/user-profile.sh| | |Bash/Mintty|$CMDER_ROOT/config/user-profile.sh| | ||||||
|  |  | ||||||
| Note: Bash and Mintty sessions will also source the '$HOME/.bashrc' file it it exists after it sources '$CMDER_ROOT/config/user-profile.sh'. | Note: Bash and Mintty sessions will also source the '$HOME/.bashrc' file if it exists after it sources '$CMDER_ROOT/config/user-profile.sh'. | ||||||
|  |  | ||||||
| ### Linux like 'profile.d' support for all supported shell types. | ### Linux like 'profile.d' support for all supported shell types. | ||||||
| You can write *.cmd|*.bat, *.ps1, and *.sh scripts and just drop them in the %CMDER_ROOT%\config\profile.d folder to add startup config to Cmder. | You can write *.cmd|*.bat, *.ps1, and *.sh scripts and just drop them in the %CMDER_ROOT%\config\profile.d folder to add startup config to Cmder. | ||||||
| @@ -114,7 +114,7 @@ Aliases defined using the `alias.bat` command will automatically be saved in the | |||||||
| #### Bash.exe|Mintty.exe Aliases | #### Bash.exe|Mintty.exe Aliases | ||||||
| Bash shells support simple and complex aliases with optional parameters natively so they work a little different.  Typing `alias name=command` will create an alias only for the current running session.  To make an alias permanent add it to either your `$CMDER_ROOT/config/user-profile.sh` or your `$HOME/.bashrc`. | Bash shells support simple and complex aliases with optional parameters natively so they work a little different.  Typing `alias name=command` will create an alias only for the current running session.  To make an alias permanent add it to either your `$CMDER_ROOT/config/user-profile.sh` or your `$HOME/.bashrc`. | ||||||
|  |  | ||||||
| If you add bash aliases to `$CMDER_ROOT/config/user-profile.sh` they will portable and follow your Cmder folder if you copy it to another machine.  `$HOME/.bashrc` defined aliases are not portable. | If you add bash aliases to `$CMDER_ROOT/config/user-profile.sh` they will be portable and follow your Cmder folder if you copy it to another machine.  `$HOME/.bashrc` defined aliases are not portable. | ||||||
|  |  | ||||||
| #### PowerShell.exe Aliases | #### PowerShell.exe Aliases | ||||||
| PowerShell has native simple alias support, for example `[new-alias | set-alias] alias command`, so complex aliases with optional parameters are not supported in PowerShell sessions.  Type `get-help [new-alias|set-alias] -full` for help on PowerShell aliases. | PowerShell has native simple alias support, for example `[new-alias | set-alias] alias command`, so complex aliases with optional parameters are not supported in PowerShell sessions.  Type `get-help [new-alias|set-alias] -full` for help on PowerShell aliases. | ||||||
|   | |||||||
| @@ -253,7 +253,7 @@ | |||||||
| 			<value name="TabsLocation" type="hex" data="01"/> | 			<value name="TabsLocation" type="hex" data="01"/> | ||||||
| 			<value name="TabSelf" type="hex" data="01"/> | 			<value name="TabSelf" type="hex" data="01"/> | ||||||
| 			<value name="TabLazy" type="hex" data="01"/> | 			<value name="TabLazy" type="hex" data="01"/> | ||||||
| 			<value name="TabRecent" type="hex" data="01"/> | 			<value name="TabRecent" type="hex" data="00"/> | ||||||
| 			<value name="TabDblClick" type="dword" data="00000001"/> | 			<value name="TabDblClick" type="dword" data="00000001"/> | ||||||
| 			<value name="TabsOnTaskBar" type="hex" data="02"/> | 			<value name="TabsOnTaskBar" type="hex" data="02"/> | ||||||
| 			<value name="TaskBarOverlay" type="hex" data="01"/> | 			<value name="TaskBarOverlay" type="hex" data="01"/> | ||||||
|   | |||||||
| @@ -188,8 +188,7 @@ void StartCmder(std::wstring path, bool is_single_mode) | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	// Ensure EnvironmentVariables are propagated. | 	// Ensure EnvironmentVariables are propagated. | ||||||
| 	SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)"Environment", SMTO_ABORTIFHUNG, 5000, NULL); |  | ||||||
| 	SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) L"Environment", SMTO_ABORTIFHUNG, 5000, NULL); // For Windows >= 8 |  | ||||||
|  |  | ||||||
| 	STARTUPINFO si = { 0 }; | 	STARTUPINFO si = { 0 }; | ||||||
| 	si.cb = sizeof(STARTUPINFO); | 	si.cb = sizeof(STARTUPINFO); | ||||||
| @@ -197,12 +196,15 @@ void StartCmder(std::wstring path, bool is_single_mode) | |||||||
| 	si.lpTitle = appId; | 	si.lpTitle = appId; | ||||||
| 	si.dwFlags = STARTF_TITLEISAPPID; | 	si.dwFlags = STARTF_TITLEISAPPID; | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| 	PROCESS_INFORMATION pi; | 	PROCESS_INFORMATION pi; | ||||||
| 	if (!CreateProcess(conEmuPath, args, NULL, NULL, false, 0, NULL, NULL, &si, &pi)) { | 	if (!CreateProcess(conEmuPath, args, NULL, NULL, false, 0, NULL, NULL, &si, &pi)) { | ||||||
| 		MessageBox(NULL, _T("Unable to create the ConEmu Process!"), _T("Error"), MB_OK); | 		MessageBox(NULL, _T("Unable to create the ConEmu Process!"), _T("Error"), MB_OK); | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	LRESULT lr = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)"Environment", SMTO_ABORTIFHUNG | SMTO_NOTIMEOUTIFNOTHUNG, 5000, NULL); | ||||||
|  | 	lr = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) L"Environment", SMTO_ABORTIFHUNG | SMTO_NOTIMEOUTIFNOTHUNG, 5000, NULL); // For Windows >= 8 | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| bool IsUserOnly(std::wstring opt) | bool IsUserOnly(std::wstring opt) | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								vendor/sources.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/sources.json
									
									
									
									
										vendored
									
									
								
							| @@ -1,8 +1,8 @@ | |||||||
| [ | [ | ||||||
|     { |     { | ||||||
|         "name": "git-for-windows", |         "name": "git-for-windows", | ||||||
|         "version": "v2.10.0.windows.1", |         "version": "v2.10.1.windows.1", | ||||||
|         "url": "https://github.com/git-for-windows/git/releases/download/v2.10.0.windows.1/PortableGit-2.10.0-32-bit.7z.exe" |         "url": "https://github.com/git-for-windows/git/releases/download/v2.10.1.windows.1/PortableGit-2.10.1-32-bit.7z.exe" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|         "name": "clink", |         "name": "clink", | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								vendor/user-aliases.cmd.example
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/user-aliases.cmd.example
									
									
									
									
										vendored
									
									
								
							| @@ -9,7 +9,7 @@ gl=git log --oneline --all --graph --decorate  $* | |||||||
| ls=ls --show-control-chars -F --color $* | ls=ls --show-control-chars -F --color $* | ||||||
| pwd=cd | pwd=cd | ||||||
| clear=cls | clear=cls | ||||||
| history=cat %CMDER_ROOT%\config\.history | history=cat "%CMDER_ROOT%\config\.history" | ||||||
| unalias=alias /d $1 | unalias=alias /d $1 | ||||||
| vi=vim $* | vi=vim $* | ||||||
| cmderr=cd /d "%CMDER_ROOT%" | cmderr=cd /d "%CMDER_ROOT%" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user