From 48f50568b08b52da701beb9a935d14bd073648e7 Mon Sep 17 00:00:00 2001 From: dgames Date: Fri, 23 Jul 2021 23:09:24 -0400 Subject: [PATCH 01/13] update conemu and clink --- vendor/sources.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/sources.json b/vendor/sources.json index d7fd186..3eb61d6 100644 --- a/vendor/sources.json +++ b/vendor/sources.json @@ -6,13 +6,13 @@ }, { "name": "clink", - "version": "1.2.22", - "url": "https://github.com/chrisant996/clink/releases/download/v1.2.22/clink.1.2.22.890a84.zip" + "version": "1.2.23", + "url": "https://github.com/chrisant996/clink/releases/download/v1.2.23/clink.1.2.23.9b90e7.zip" }, { "name": "conemu-maximus5", - "version": "210304", - "url": "https://github.com/Maximus5/ConEmu/releases/download/v21.03.04/ConEmuPack.210304.7z" + "version": "210718", + "url": "https://github.com/Maximus5/ConEmu/releases/download/v21.07.18/ConEmuPack.210718.7z" }, { "name": "clink-completions", From 0fc6b6571e37310838ce81b71bc020c4c7c8ebff Mon Sep 17 00:00:00 2001 From: dgames Date: Sat, 7 Aug 2021 03:25:34 -0400 Subject: [PATCH 02/13] update clink to 1.2.24 --- .gitignore | 1 + CHANGELOG.md | 3 ++- vendor/sources.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 67678bb..771fd1a 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ vendor/*/* !vendor/lib/* !vendor/* !vendor/psmodules/* +vendor/git-for-windows config/* !config/Readme.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 77d2fdb..0c1dd53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ ### Changes - Update Git for Windows to 2.31.1 -- Update to Clink 1.2.5 +- Update to Clink 1.2.24 +- Update to Conemu 210718 - Do not rely on having a `%cmder_root%\config\cmder_prompt_config.lua` ### Adds diff --git a/vendor/sources.json b/vendor/sources.json index 3eb61d6..0fd613e 100644 --- a/vendor/sources.json +++ b/vendor/sources.json @@ -7,7 +7,7 @@ { "name": "clink", "version": "1.2.23", - "url": "https://github.com/chrisant996/clink/releases/download/v1.2.23/clink.1.2.23.9b90e7.zip" + "url": "https://github.com/chrisant996/clink/releases/download/v1.2.23/clink.1.2.24.3a07c0.zip" }, { "name": "conemu-maximus5", From 710cc3ecc3c1ff9de20a30a7664a1df82c03b3fb Mon Sep 17 00:00:00 2001 From: dgames Date: Sat, 7 Aug 2021 03:27:13 -0400 Subject: [PATCH 03/13] update clink to 1.2.24 --- vendor/sources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/sources.json b/vendor/sources.json index 0fd613e..bf02ed6 100644 --- a/vendor/sources.json +++ b/vendor/sources.json @@ -6,7 +6,7 @@ }, { "name": "clink", - "version": "1.2.23", + "version": "1.2.24", "url": "https://github.com/chrisant996/clink/releases/download/v1.2.23/clink.1.2.24.3a07c0.zip" }, { From f717f5031ba86e1d4af7ec8df048923f0873be71 Mon Sep 17 00:00:00 2001 From: dgames Date: Sat, 7 Aug 2021 03:30:40 -0400 Subject: [PATCH 04/13] update clink to 1.2.24 --- vendor/sources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/sources.json b/vendor/sources.json index bf02ed6..372972f 100644 --- a/vendor/sources.json +++ b/vendor/sources.json @@ -7,7 +7,7 @@ { "name": "clink", "version": "1.2.24", - "url": "https://github.com/chrisant996/clink/releases/download/v1.2.23/clink.1.2.24.3a07c0.zip" + "url": "https://github.com/chrisant996/clink/releases/download/v1.2.24/clink.1.2.24.3a07c0_setup.exe" }, { "name": "conemu-maximus5", From b885b4e235e3df465d929440b784740045d548ed Mon Sep 17 00:00:00 2001 From: dgames Date: Fri, 13 Aug 2021 21:36:58 -0400 Subject: [PATCH 05/13] Clink 1.2.26 --- CHANGELOG.md | 2 +- vendor/git-for-windows_1.29.1 | 1 + vendor/sources.json | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 120000 vendor/git-for-windows_1.29.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c1dd53..26aeaf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ ### Changes - Update Git for Windows to 2.31.1 -- Update to Clink 1.2.24 +- Update to Clink 1.2.26 - Update to Conemu 210718 - Do not rely on having a `%cmder_root%\config\cmder_prompt_config.lua` diff --git a/vendor/git-for-windows_1.29.1 b/vendor/git-for-windows_1.29.1 new file mode 120000 index 0000000..5f898e1 --- /dev/null +++ b/vendor/git-for-windows_1.29.1 @@ -0,0 +1 @@ +../../../dtgam/bin/git-2.29.0 \ No newline at end of file diff --git a/vendor/sources.json b/vendor/sources.json index 372972f..b7f55a2 100644 --- a/vendor/sources.json +++ b/vendor/sources.json @@ -6,8 +6,8 @@ }, { "name": "clink", - "version": "1.2.24", - "url": "https://github.com/chrisant996/clink/releases/download/v1.2.24/clink.1.2.24.3a07c0_setup.exe" + "version": "1.2.26", + "url": "https://github.com/chrisant996/clink/releases/download/v1.2.26/clink.1.2.26.3dc58b.zip" }, { "name": "conemu-maximus5", From c75c02c9ce676643dd44004b3e6d7867530600f1 Mon Sep 17 00:00:00 2001 From: dgames Date: Wed, 20 Oct 2021 21:10:38 -0400 Subject: [PATCH 06/13] update Clink and Conemu versions --- vendor/sources.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/sources.json b/vendor/sources.json index b7f55a2..397c479 100644 --- a/vendor/sources.json +++ b/vendor/sources.json @@ -6,13 +6,13 @@ }, { "name": "clink", - "version": "1.2.26", - "url": "https://github.com/chrisant996/clink/releases/download/v1.2.26/clink.1.2.26.3dc58b.zip" + "version": "1.2.32", + "url": "https://github.com/chrisant996/clink/releases/download/v1.2.32/clink.1.2.32.510fbd.zip" }, { "name": "conemu-maximus5", - "version": "210718", - "url": "https://github.com/Maximus5/ConEmu/releases/download/v21.07.18/ConEmuPack.210718.7z" + "version": "210912", + "url": "https://github.com/Maximus5/ConEmu/releases/download/v21.09.12/ConEmuPack.210912.7z" }, { "name": "clink-completions", From c27cedc9b3e7d9e0673d90d0c449d50b74eaa983 Mon Sep 17 00:00:00 2001 From: dgames Date: Sun, 7 Nov 2021 10:54:33 -0500 Subject: [PATCH 07/13] quote PATH settings --- vendor/cmder.sh | 6 +++--- vendor/lib/lib_path.cmd | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/cmder.sh b/vendor/cmder.sh index 7ccddcf..4074346 100644 --- a/vendor/cmder.sh +++ b/vendor/cmder.sh @@ -42,10 +42,10 @@ elif [ -d "${CMDER_ROOT}/vendor/git-for-windows" ] ; then fi if [[ ! "$PATH" =~ "${GIT_INSTALL_ROOT}/bin:" ]] ; then - PATH=${GIT_INSTALL_ROOT}/bin:$PATH + PATH="${GIT_INSTALL_ROOT}/bin:$PATH" fi -PATH=${CMDER_ROOT}/bin:${CMDER_ROOT}/vendor/bin:$PATH:${CMDER_ROOT} +PATH="${CMDER_ROOT}/bin:${CMDER_ROOT}/vendor/bin:$PATH:${CMDER_ROOT}" export PATH @@ -80,7 +80,7 @@ if [ "${CMDER_USER_CONFIG}" != "" ] ; then mv "$CMDER_USER_CONFIG/user-profile.sh" "$CMDER_USER_CONFIG/user_profile.sh" fi - export PATH=${CMDER_USER_CONFIG}/bin:$PATH + export PATH="${CMDER_USER_CONFIG}/bin:$PATH" CmderUserProfilePath="${CMDER_USER_CONFIG}/user_profile.sh" if [ -f "${CMDER_USER_CONFIG}/user_profile.sh" ] ; then diff --git a/vendor/lib/lib_path.cmd b/vendor/lib/lib_path.cmd index 725b549..5788c35 100644 --- a/vendor/lib/lib_path.cmd +++ b/vendor/lib/lib_path.cmd @@ -74,7 +74,7 @@ exit /b set "find_query=%add_to_path%" set "find_query=%find_query:\=\\%" set "find_query=%find_query: =\ %" - set OLD_PATH=%PATH% + set "OLD_PATH=%PATH%" setlocal enabledelayedexpansion if "!found!" == "0" ( From f24266014f01458408670eac7d917a9e57f25b2c Mon Sep 17 00:00:00 2001 From: dgames Date: Sun, 7 Nov 2021 13:03:44 -0500 Subject: [PATCH 08/13] update clink and git --- CHANGELOG.md | 6 +++--- vendor/sources.json | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26aeaf3..a944d2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ ### Changes -- Update Git for Windows to 2.31.1 -- Update to Clink 1.2.26 -- Update to Conemu 210718 +- Update Git for Windows to 2.33.1 +- Update to Clink 1.2.41 +- Update to Conemu 210912 - Do not rely on having a `%cmder_root%\config\cmder_prompt_config.lua` ### Adds diff --git a/vendor/sources.json b/vendor/sources.json index 397c479..9e59eff 100644 --- a/vendor/sources.json +++ b/vendor/sources.json @@ -1,13 +1,13 @@ [ { "name": "git-for-windows", - "version": "v2.31.1.windows.1", - "url": "https://github.com/git-for-windows/git/releases/download/v2.31.1.windows.1/PortableGit-2.31.1-64-bit.7z.exe" + "version": "v2.33.1.windows.1", + "url": "https://github.com/git-for-windows/git/releases/download/v2.33.1.windows.1/PortableGit-2.33.1-64-bit.7z.exe" }, { "name": "clink", - "version": "1.2.32", - "url": "https://github.com/chrisant996/clink/releases/download/v1.2.32/clink.1.2.32.510fbd.zip" + "version": "1.2.41", + "url": "https://github.com/chrisant996/clink/releases/download/v1.2.41/clink.1.2.41.647c1b.zip" }, { "name": "conemu-maximus5", From 6ae2f97f524b7f034267fb1fd990c3cfc189cc07 Mon Sep 17 00:00:00 2001 From: dgames Date: Sun, 21 Nov 2021 13:32:57 -0500 Subject: [PATCH 09/13] add quotes --- vendor/lib/lib_path.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/lib/lib_path.cmd b/vendor/lib/lib_path.cmd index 5788c35..3a807ad 100644 --- a/vendor/lib/lib_path.cmd +++ b/vendor/lib/lib_path.cmd @@ -121,8 +121,8 @@ exit /b exit /b :toolong - echo %OLD_PATH%>tempfileA - echo %PATH%>tempfileB + echo "%OLD_PATH%">tempfileA + echo "%PATH%">tempfileB fc /b tempfileA tempfileB 2>nul 1>nul if errorlevel 1 ( del tempfileA & del tempfileB & goto :changed ) del tempfileA & del tempfileB From 004535e0bc6e333a4b50643d627acdab9f8ce9ce Mon Sep 17 00:00:00 2001 From: dgames Date: Sun, 21 Nov 2021 13:40:53 -0500 Subject: [PATCH 10/13] remove -all --- CHANGELOG.md | 12 ++++++++++++ vendor/profile.ps1 | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a944d2c..39a08a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,18 @@ ### Adds +- Powershell Git version Discovery - See #2373 for the full proposal. + - Find user installed Git on Path + - If found + - if newer than Cmder embedded Git + - Use it's existing Path config and completely ignore embedded Git. + - Else if Cmder embedded Git exists and is newer + - Match User installed Git path config using Cmder embedded Git folders. + - Else if Cmder embedded Git exists + - Add Cmder embedded Git folders to the path. + - `$env:cmder_root\vendor\git-for-windows\cmd;$env:path` + - `$env:path;$env:cmder_root\vendor\git-for-windows\usr\bin` + - `$env:path;$env:cmder_root\vendor\git-for-windows\mingw64\bin` - Configurable prompt for `cmd.exe` sessions. See `%cmder_root%\config\cmder_prompt_config.lua` - Configurable colors - Option to change `λ` to another character. diff --git a/vendor/profile.ps1 b/vendor/profile.ps1 index ea3df01..1472bc5 100644 --- a/vendor/profile.ps1 +++ b/vendor/profile.ps1 @@ -44,7 +44,7 @@ $gitVersionVendor = (readVersion -gitPath "$ENV:CMDER_ROOT\vendor\git-for-window # write-host "GIT VENDOR: ${gitVersionVendor}" # Get user installed Git Version[s] and Compare with vendored if found. -foreach ($git in (get-command -ErrorAction SilentlyContinue -all 'git')) { +foreach ($git in (get-command -ErrorAction SilentlyContinue 'git')) { # write-host "GIT Path: " + $git.Path $gitDir = Split-Path -Path $git.Path $gitDir = isGitShim -gitPath $gitDir From f39aade500acfc3e66afec06db228f4e22482f8a Mon Sep 17 00:00:00 2001 From: dgames Date: Sun, 21 Nov 2021 13:49:39 -0500 Subject: [PATCH 11/13] Update to Git 2.34.0and Clink 1.2.46 --- CHANGELOG.md | 6 +++--- vendor/sources.json | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39a08a1..1f103e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ ### Changes -- Update Git for Windows to 2.33.1 -- Update to Clink 1.2.41 -- Update to Conemu 210912 +- Update Git for Windows to 2.34.0 +- Update to Clink 1.2.46 +- Update to stable Conemu 210912 - Do not rely on having a `%cmder_root%\config\cmder_prompt_config.lua` ### Adds diff --git a/vendor/sources.json b/vendor/sources.json index 9e59eff..f559553 100644 --- a/vendor/sources.json +++ b/vendor/sources.json @@ -1,13 +1,13 @@ [ { "name": "git-for-windows", - "version": "v2.33.1.windows.1", - "url": "https://github.com/git-for-windows/git/releases/download/v2.33.1.windows.1/PortableGit-2.33.1-64-bit.7z.exe" + "version": "v2.34.0.windows.1", + "url": "https://github.com/git-for-windows/git/releases/download/v2.34.0.windows.1/PortableGit-2.34.0-64-bit.7z.exe" }, { "name": "clink", - "version": "1.2.41", - "url": "https://github.com/chrisant996/clink/releases/download/v1.2.41/clink.1.2.41.647c1b.zip" + "version": "1.2.46", + "url": "https://github.com/chrisant996/clink/releases/download/v1.2.46/clink.1.2.46.69fc92.zip" }, { "name": "conemu-maximus5", From 357e51acd1c9afa084509446de3363fc65819ad5 Mon Sep 17 00:00:00 2001 From: dgames Date: Sat, 15 Jan 2022 11:00:58 -0500 Subject: [PATCH 12/13] spelling fixes --- README.md | 10 +++++----- launcher/src/CmderLauncher.cpp | 2 +- scripts/utils.ps1 | 4 ++-- vendor/bin/alias.cmd | 4 ++-- vendor/bin/cexec.cmd | 10 +++++----- vendor/cmder_exinit | 2 +- vendor/init.bat | 2 +- vendor/lib/lib_git.cmd | 4 ++-- vendor/lib/lib_path.cmd | 2 +- vendor/profile.ps1 | 2 +- vendor/psmodules/PsGet/PsGet.psm1 | 16 ++++++++-------- vendor/user_profile.cmd.default | 2 +- 12 files changed, 30 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 592c19e..af3c913 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ The Cmder's user interface is also designed to be more eye pleasing, and you can | `/SINGLE` | Start Cmder in single mode. | | `/START [start_path]` | Folder path to start in. | | `/TASK [task_name]` | Task to start after launch. | -| `/X [ConEmu extras pars]` | Forwads parameters to ConEmu | +| `/X [ConEmu extras pars]` | Forwards parameters to ConEmu | ## Context Menu Integration @@ -138,7 +138,7 @@ You may find some Monokai color schemes for mintty to match Cmder [here](https:/ ### Changing Cmder Default `cmd.exe` Prompt Config File -The default Cmder shell `cmd::Cmder` propmt is customized using `Clink` and is configured by editing a config file that exists in one of two locations: +The default Cmder shell `cmd::Cmder` prompt is customized using `Clink` and is configured by editing a config file that exists in one of two locations: - Single User Portable Config `%CMDER_ROOT%\config\cmder_prompt_config.lua` - Shared Cmder install with Non-Portable Individual User Config `%CMDER_USER_CONFIG%\cmder_prompt_config.lua` @@ -177,7 +177,7 @@ Documentation is in the file for each setting. | `/c [user cmder root]` | Enables user bin and config folders for 'Cmder as admin' sessions due to non-shared environment. | not set | | `/d` | Enables debug output. | not set | | `/f` | Enables Cmder Fast Init Mode. This disables some features, see pull request [#1492](https://github.com/cmderdev/cmder/pull/1942) for more details. | not set | -| `/t` | Enables Cmder Timed Init Mode. This displays the time taken run init scripts | not set | +| `/t` | Enables Cmder Timed Init Mode. This displays the time taken run init scripts | not set | | `/git_install_root [file path]` | User specified Git installation root path. | `%CMDER_ROOT%\vendor\Git-for-Windows` | | `/home [home folder]` | User specified folder path to set `%HOME%` environment variable. | `%userprofile%` | | `/max_depth [1-5]` | Define max recurse depth when adding to the path for `%cmder_root%\bin` and `%cmder_user_bin%` | 1 | @@ -185,7 +185,7 @@ Documentation is in the file for each setting. | `/svn_ssh [path to ssh.exe]` | Define `%SVN_SSH%` so we can use git svn with ssh svn repositories. | `%GIT_INSTALL_ROOT%\bin\ssh.exe` | | `/user_aliases [file path]` | File path pointing to user aliases. | `%CMDER_ROOT%\config\user_aliases.cmd` | | `/v` | Enables verbose output. | not set | -| (custom arguments) | User defined arguments processed by `cexec`. Type `cexec /?` for more useage. | not set | +| (custom arguments) | User defined arguments processed by `cexec`. Type `cexec /?` for more usage. | not set | ### Cmder Shell User Config Single user portable configuration is possible using the cmder specific shell config files. Edit the below files to add your own configuration: @@ -269,7 +269,7 @@ If you want to run SSH agent on startup, include the line `@call "%GIT_INSTALL_R Cmder is by default shipped with a vendored Git installation. On each instance of launching Cmder, an attempt is made to locate any other user provided Git binaries. Upon finding a `git.exe` binary, Cmder further compares its version against the vendored one _by executing_ it. The vendored `git.exe` binary is _only_ used when it is more recent than the user-installed one. -You may use your favorite version of Git by including its path in the `%PATH%` enviroment variable. Moreover, the **Mini** edition of Cmder (found on the [downloads page](https://github.com/cmderdev/cmder/releases)) excludes any vendored Git binaries. +You may use your favorite version of Git by including its path in the `%PATH%` environment variable. Moreover, the **Mini** edition of Cmder (found on the [downloads page](https://github.com/cmderdev/cmder/releases)) excludes any vendored Git binaries. ### Using external Cygwin/Babun, MSys2, WSL, or Git for Windows SDK with Cmder. diff --git a/launcher/src/CmderLauncher.cpp b/launcher/src/CmderLauncher.cpp index 05d3f99..5d36566 100644 --- a/launcher/src/CmderLauncher.cpp +++ b/launcher/src/CmderLauncher.cpp @@ -250,7 +250,7 @@ void StartCmder(std::wstring path = L"", bool is_single_mode = false, std::wstr { MessageBox(NULL, (GetLastError() == ERROR_ACCESS_DENIED) - ? L"Failed to copy conig/ConEmu-%COMPUTERNAME%.xml file to vendor/conemu-maximus5/ConEmu.xml! Access Denied." + ? L"Failed to copy config/ConEmu-%COMPUTERNAME%.xml file to vendor/conemu-maximus5/ConEmu.xml! Access Denied." : L"Failed to copy config/ConEmu-%COMPUTERNAME%.xml file to vendor/conemu-maximus5/ConEmu.xml!", MB_TITLE, MB_ICONSTOP); exit(1); } diff --git a/scripts/utils.ps1 b/scripts/utils.ps1 index fe5aa47..4447aec 100644 --- a/scripts/utils.ps1 +++ b/scripts/utils.ps1 @@ -31,7 +31,7 @@ function Extract-Archive($source, $target) { Write-Verbose $("Extracting Archive '$cmder_root\vendor\" + $source.replace('/','\') + " to '$cmder_root\vendor\$target'") Invoke-Expression "7z x -y -o`"$($target)`" `"$source`" > `$null" if ($lastexitcode -ne 0) { - Write-Error "Extracting of $source failied" + Write-Error "Extracting of $source failed" } Remove-Item $source } @@ -41,7 +41,7 @@ function Create-Archive($source, $target, $params) { Write-Verbose "Running: $command" Invoke-Expression $command if ($lastexitcode -ne 0) { - Write-Error "Compressing $source failied" + Write-Error "Compressing $source failed" } } diff --git a/vendor/bin/alias.cmd b/vendor/bin/alias.cmd index ac2525c..462131e 100644 --- a/vendor/bin/alias.cmd +++ b/vendor/bin/alias.cmd @@ -140,9 +140,9 @@ echo. in he alias is desired. Variables in aliases surrounded by double echo. quotes only require '^^%%' vs '^^^^^^^^%%' echo. $* - allows the alias to assume all the parameters of the supplied echo. command. -echo. $1-$9 - Allows you to seperate parameter by number, much like %%1 in +echo. $1-$9 - Allows you to separate parameter by number, much like %%1 in echo. batch. -echo. $T - Command seperator, allowing you to string several commands +echo. $T - Command separator, allowing you to string several commands echo. together into one alias. echo. echo. For more information, read DOSKEY /? diff --git a/vendor/bin/cexec.cmd b/vendor/bin/cexec.cmd index ee5efa8..755cfae 100644 --- a/vendor/bin/cexec.cmd +++ b/vendor/bin/cexec.cmd @@ -84,29 +84,29 @@ echo Usage: echo. echo cexec /setPath [NOT] flagName command/program [parameters] echo. -echo /setPath Generate a global varibles %%ccall%% and %%cexec%% for +echo /setPath Generate a global variables %%ccall%% and %%cexec%% for echo quicker use. Following arguments will be ignored. echo. echo NOT Specifies that cexec should carry out echo the command only if the flag is missing. echo. -echo /[flagName] Specifies which flag name is to detect. It's recommand +echo /[flagName] Specifies which flag name is to detect. It's recommended echo to use a pair of double quotation marks to wrap echo your flag name to avoid exceed expectation. echo. echo command/program Specifies the command to carry out if the -echo argument name is detected. It's recommand to +echo argument name is detected. It's recommended to echo use a pair of double quotation marks to echo wrap your command to avoid exceed expectation. echo. echo parameters These are the parameters passed to the command/program. -echo It's recommand to use a pair of double quotation marks +echo It's recommended to use a pair of double quotation marks echo to wrap your flag name to avoid exceed expectation. echo. echo Examples: echo. echo These examples are expected to be written in %cmder_root%/config/user-profile.cmd -echo CExec evaluates the environment varible "CMDER_USER_FLAGS" and conditionally +echo CExec evaluates the environment variable "CMDER_USER_FLAGS" and conditionally echo caries out actions based on flags that are passed. echo. echo Case 1: diff --git a/vendor/cmder_exinit b/vendor/cmder_exinit index 095a1e9..4ec3351 100644 --- a/vendor/cmder_exinit +++ b/vendor/cmder_exinit @@ -10,7 +10,7 @@ # zsh - Copy to /etc/profile.d/cmder_exinit.zsh # Add portable user customizations ${CMDER_ROOT}/config/user-profile.sh or # add whole config scripts to ${CMDER_ROOT}/config/profile.d both will be sourced -# from mthis file and be appied to the environment at startup. +# from this file and be applied to the environment at startup. # # These customizations will follow Cmder if $CMDER_ROOT is copied # to another machine. diff --git a/vendor/init.bat b/vendor/init.bat index 3b1bf6a..e5da902 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -131,7 +131,7 @@ goto var_loop if defined CMDER_USER_CONFIG ( %print_debug% init.bat "CMDER IS ALSO USING INDIVIDUAL USER CONFIG FROM '%CMDER_USER_CONFIG%'!" - if not exist "%CMDER_USER_CONFIG%\opt" md "%CMDER_USER_CONFIG%\opt" + if not exist "%CMDER_USER_CONFIG%\..\opt" md "%CMDER_USER_CONFIG%\..\opt" ) :: Pick right version of clink diff --git a/vendor/lib/lib_git.cmd b/vendor/lib/lib_git.cmd index 3e095a6..19d2af7 100644 --- a/vendor/lib/lib_git.cmd +++ b/vendor/lib/lib_git.cmd @@ -14,7 +14,7 @@ exit /b :read_version :::=============================================================================== -:::read_version - Get the git.exe verion +:::read_version - Get the git.exe version :::. :::include: :::. @@ -54,7 +54,7 @@ exit /b if /i "%%A %%B" == "git version" ( set "GIT_VERSION=%%C" ) else ( - echo "'git --version' returned an inproper version string!" + echo "'git --version' returned an improper version string!" pause exit /b ) diff --git a/vendor/lib/lib_path.cmd b/vendor/lib/lib_path.cmd index 3a807ad..933d2f3 100644 --- a/vendor/lib/lib_path.cmd +++ b/vendor/lib/lib_path.cmd @@ -162,7 +162,7 @@ exit /b :::. :::options: :::. -::: [max_depth] Max recuse depth. Default: 1 +::: [max_depth] Max recursion depth. Default: 1 :::. ::: append Append instead to path env variable rather than pre-pend. :::. diff --git a/vendor/profile.ps1 b/vendor/profile.ps1 index 1472bc5..23384c5 100644 --- a/vendor/profile.ps1 +++ b/vendor/profile.ps1 @@ -14,7 +14,7 @@ if ($ENV:CMDER_USER_CONFIG) { # write-host "CMDER IS ALSO USING INDIVIDUAL USER CONFIG FROM '$ENV:CMDER_USER_CONFIG'!" } -# We do this for Powershell as Admin Sessions because CMDER_ROOT is not beng set. +# We do this for Powershell as Admin Sessions because CMDER_ROOT is not being set. if (! $ENV:CMDER_ROOT ) { if ( $ENV:ConEmuDir ) { $ENV:CMDER_ROOT = resolve-path( $ENV:ConEmuDir + "\..\.." ) diff --git a/vendor/psmodules/PsGet/PsGet.psm1 b/vendor/psmodules/PsGet/PsGet.psm1 index ad3f886..b0094b9 100644 --- a/vendor/psmodules/PsGet/PsGet.psm1 +++ b/vendor/psmodules/PsGet/PsGet.psm1 @@ -124,7 +124,7 @@ Set-Variable -Name PSGET_PSD1 -Value 'PSD1' -Option Constant -Scope Script Description ----------- - Installs the module witout importing it to the current session + Installs the module without importing it to the current session .EXAMPLE # Install-Module PoshHg -AddToProfile @@ -448,7 +448,7 @@ function Update-Module { Description ----------- - Retrieves information about all registerd modules that starts with PoshCo. + Retrieves information about all registered modules that start with PoshCo. #> function Get-PsGetModuleInfo { [CmdletBinding()] @@ -694,7 +694,7 @@ function Install-ModuleFromDirectory { throw "Module $Module was not found in central repository" } - # $Module and $moduleData.Id are not equally by garantee, so we have to test again. + # $Module and $moduleData.Id are not equally by guarantee, so we have to test again. if (Test-ModuleInstalledAndImport -ModuleName:$moduleData.ModuleName -Destination:$Destination -Update:$Update -DoNotImport:$DoNotImport -ModuleHash:$ModuleHash) { return } @@ -1488,7 +1488,7 @@ function Invoke-DownloadModuleFromWeb { Install the module inside of the provided directory into the defined destination and perform the following steps: - * Rename module if requestes by provided InstallWithModuleName + * Rename module if requested by provided InstallWithModuleName * If a ModuleHash is provided, check if it matches. * Add the destination path to the PSModulePath if necessary (depends on provided parameters) * Place the conventions-matching module folder in the destination folder @@ -1796,9 +1796,9 @@ function Test-ModuleInstalledAndImport { <# .SYNOPSIS - Extract the content of the referenced zip file to the defind destination + Extract the content of the referenced zip file to the defined destination - .PARAMATER Path + .PARAMETER Path Path to a zip file with the file extension '.zip' .Parameter Destination @@ -1856,7 +1856,7 @@ function Expand-ZipModule { <# .SYNOPSIS - Update '$env:PSModulePath' from 'User' and 'Machine' scope envrionment variables + Update '$env:PSModulePath' from 'User' and 'Machine' scope environment variables #> function Update-PSModulePath { process { @@ -2152,4 +2152,4 @@ Export-ModuleMember TabExpansion Export-ModuleMember -Alias inmo Export-ModuleMember -Alias ismo Export-ModuleMember -Alias upmo -#endregion \ No newline at end of file +#endregion diff --git a/vendor/user_profile.cmd.default b/vendor/user_profile.cmd.default index e5966e0..00c7fb5 100644 --- a/vendor/user_profile.cmd.default +++ b/vendor/user_profile.cmd.default @@ -12,7 +12,7 @@ :: set "PATH=%CMDER_ROOT%\vendor\whatever;%PATH%" :: arguments in this batch are passed from init.bat, you can quickly parse them like so: -:: more useage can be seen by typing "cexec /?" +:: more usage can be seen by typing "cexec /?" :: %ccall% "/customOption" "command/program" From c51c3c55a8b75667b5dfe82671b23421fcefb60d Mon Sep 17 00:00:00 2001 From: dgames Date: Sat, 15 Jan 2022 11:12:38 -0500 Subject: [PATCH 13/13] add README config/profile.d --- .gitignore | 1 + config/profile.d/README.md | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 config/profile.d/README.md diff --git a/.gitignore b/.gitignore index 771fd1a..3431088 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ vendor/git-for-windows config/* !config/Readme.md +!config/profile.d/README.md config_user/* diff --git a/config/profile.d/README.md b/config/profile.d/README.md new file mode 100644 index 0000000..4883147 --- /dev/null +++ b/config/profile.d/README.md @@ -0,0 +1,3 @@ +## Profile.d Folder + +* Files in this folder named `*.{sh|cmd|ps1}`: Will be executed by the appropriate shell when starting the shell.