Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
274cce1
optimize for speed
daxgames Feb 11, 2023
56f45a8
add debugging of path adds
daxgames Feb 12, 2023
7e50f50
add vendor/user_init.optional.cmd
daxgames Feb 12, 2023
727a99b
shared or user user_init.cmd
daxgames Feb 12, 2023
02154a8
Update to only collext cmder env vars
daxgames Feb 12, 2023
1e623ec
auto generate cmd user_init.cmd
daxgames Feb 12, 2023
3a2e747
add cleanup of unused env vars
daxgames Feb 18, 2023
9cbc184
cleanup
daxgames Feb 18, 2023
615ba5f
Delete user_init.optional.cmd
daxgames Feb 18, 2023
f1e2fb5
prevent timer results every time.
daxgames Feb 27, 2023
e0b6943
add bypass
daxgames Mar 5, 2023
c4d9365
x
daxgames Mar 11, 2023
f08ad62
Merge branch 'master' of https://github.com/cmderdev/cmder into more_…
daxgames Mar 11, 2023
42568b7
Document '--' command line argument
daxgames Mar 12, 2023
b46f726
Merge branch 'master' into more_speed_2
May 8, 2023
9a851da
Merge remote-tracking branch 'upstream/master' into more_speed_2
May 18, 2023
b2135cd
don't error if vim slias exists
May 30, 2023
dac3090
Merge remote-tracking branch 'origin/more_speed_2' into more_speed_2
May 30, 2023
7b55dab
Merge remote-tracking branch 'upstream/master' into more_speed_2
May 30, 2023
86b9fb2
Add ability to launch git bash from external Installed git whwen usin…
Jun 5, 2023
ea0a9bb
Merge branch 'master' into more_speed_2
Jun 5, 2023
4bf6598
fix multiuser user_init.cmd creation
daxgames Jul 3, 2023
294f85e
fixes
daxgames Jul 3, 2023
3ca0379
sync
daxgames Jul 3, 2023
cd92c9f
cleanup
daxgames Jul 3, 2023
5311b25
Merge remote-tracking branch 'upstream/master' into more_speed_2
daxgames Jul 4, 2023
3ced7a2
'.gitignore
daxgames Jul 4, 2023
4129084
add comment to clink.lua explaining /c [folderpath]
daxgames Jul 8, 2023
b47cf43
Merge pull request #14 from cmderdev/master
daxgames Jul 25, 2023
9b446b3
Merge remote-tracking branch 'upstream/master' into more_speed_2
daxgames Jul 28, 2023
52e1a02
Merge remote-tracking branch 'upstream/master' into more_speed_2
daxgames Aug 11, 2023
bd857ba
Merge remote-tracking branch 'origin/more_speed_2' into more_speed_2
daxgames Aug 11, 2023
6b330b8
allow launching windows terminal w/cmder from cmder
daxgames Aug 11, 2023
e52fa81
Merge branch 'more_speed_2' of https://github.com/daxgames/cmder into…
daxgames Aug 11, 2023
94ea2da
make it work with windows terminal
daxgames Sep 22, 2023
7c04ee9
fixes
daxgames Sep 22, 2023
968beb8
Add initial Windows Terminal support
daxgames Sep 25, 2023
d75ba7b
Merge branch 'master' of https://github.com/cmderdev/cmder into windo…
daxgames Sep 25, 2023
74c183c
Add initial Windows Terminal support
daxgames Sep 25, 2023
2728f36
fix
daxgames Sep 25, 2023
19fe75c
Merge branch 'master' into windows_terminal
daxgames Sep 25, 2023
7db6297
fix
daxgames Sep 25, 2023
759d0ed
fix
daxgames Sep 25, 2023
63bab36
fix
daxgames Sep 25, 2023
7fa041d
fix
daxgames Sep 25, 2023
7d3e691
add start_git_bash.cmd
daxgames Sep 25, 2023
8bb2c5d
Update Cmder command line help
daxgames Sep 25, 2023
e24f653
add pack code for windows terminal releases
daxgames Sep 25, 2023
cb54352
Merge branch 'master' of https://github.com/cmderdev/cmder into windo…
daxgames Sep 25, 2023
ab10e83
sync and add windows terminal to sources.
daxgames Sep 25, 2023
ad21915
Add pack code for windows terminal
daxgames Sep 25, 2023
3671a6e
pack and build all
daxgames Sep 25, 2023
3cc22ca
pack and build all
daxgames Sep 25, 2023
58db4e3
pack and build all
daxgames Sep 25, 2023
01da2fe
turn off /t in windows terminal defaults
daxgames Sep 25, 2023
ddad83c
PR Review requested changes
daxgames Sep 26, 2023
43a5e7e
PR Review requested changes
daxgames Sep 26, 2023
9c834b6
Merge branch 'master' into development
DRSDavidSoft Nov 9, 2023
678b482
Merge branch 'master' into windows_terminal
daxgames Nov 11, 2023
2ab6bcd
cleanup
daxgames Nov 11, 2023
01c41a9
Merge branch 'master' into more_speed_2
daxgames Nov 11, 2023
f69e622
Merge branch 'master' into development
daxgames Nov 11, 2023
86091b7
properly set CMDER_ROOT for windows terminal bash
daxgames Nov 12, 2023
9a40419
Merge pull request #2896 from daxgames/more_speed_2
DRSDavidSoft Nov 21, 2023
8025b5b
Merge branch 'development' into windows_terminal
DRSDavidSoft Nov 21, 2023
f0c18f1
Update Cmder.bat
daxgames Nov 23, 2023
08fd69b
PR - Requested Changes
daxgames Nov 23, 2023
26e684f
PR - Requested Changes
daxgames Nov 23, 2023
30718ab
Merge remote-tracking branch 'origin/windows_terminal' into windows_t…
daxgames Nov 23, 2023
c85d9d6
Add Monokai, Default to One Half Dark
daxgames Jan 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add debugging of path adds
  • Loading branch information
daxgames committed Feb 12, 2023
commit 56f45a81ca97e32fdd38e12dcf9d3754df0959ff
41 changes: 36 additions & 5 deletions vendor/init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,22 @@ if "%PROCESSOR_ARCHITECTURE%"=="x86" (
set CMDER_CLINK=0
)

if exist "%CMDER_ROOT%\config\user_init.cmd" if defined CMDER_USER_CONFIG (
call "%CMDER_ROOT%\config\user_init.cmd"

if exist "%CMDER_USER_CONFIG%\config\user_init.cmd" (
call "%CMDER_USER_CONFIG%\config\user_init.cmd"
)
exit /b
) else if exist "%CMDER_ROOT%\config\user_init.cmd" (
call "%CMDER_ROOT%\config\user_init.cmd"
exit /b
)

if "%CMDER_CLINK%" == "1" (
REM TODO: If clink is already injected, goto :CLINK_FINISH
goto :INJECT_CLINK
) else if "%CMDER_CLINK%" == "2" (
goto :CLINK_FINISH
)

goto :SKIP_CLINK
Expand Down Expand Up @@ -204,11 +217,15 @@ goto :SKIP_CLINK
)

"%CMDER_ROOT%\vendor\clink\clink_%clink_architecture%.exe" inject --quiet --profile "%CMDER_CONFIG_DIR%" --scripts "%CMDER_ROOT%\vendor"
set CMDER_CLINK=2

if errorlevel 1 (
%print_error% "Clink initialization has failed with error code: %errorlevel%"
goto :CLINK_FINISH
)

set CMDER_CLINK=2

goto :CLINK_FINISH

:SKIP_CLINK
Expand Down Expand Up @@ -296,19 +313,22 @@ if exist "%CMDER_ROOT%\vendor\git-for-windows" (
)

:SPECIFIED_GIT
%print_debug% init.bat "Using /GIT_INSTALL_ROOT..."
%print_debug% init.bat "Using specified GIT_INSTALL_ROOT=%GIT_INSTALL_ROOT%...."
goto :CONFIGURE_GIT

:FOUND_GIT
%print_debug% init.bat "Using found Git '%GIT_VERSION_USER%' from '%GIT_INSTALL_ROOT%..."
%print_debug% init.bat "Using found Git '%GIT_VERSION_USER%' from 'v%GIT_INSTALL_ROOT%..."
goto :CONFIGURE_GIT

:CONFIGURE_GIT
%print_debug% init.bat "Using Git from '%GIT_INSTALL_ROOT%..."

:: Add git to the path
%print_debug% init.bat "START - git.exe(prepend): Env Var - PATH=%path%"
if exist "%GIT_INSTALL_ROOT%\cmd\git.exe" (
set "path=%GIT_INSTALL_ROOT%\cmd;%path%"
)
%print_debug% init.bat "END - git.exe(prepend): Env Var - PATH=%path%"

:: Add the unix commands at the end to not shadow windows commands like `more` and `find`
if %nix_tools% equ 1 (
Expand All @@ -319,6 +339,7 @@ if %nix_tools% equ 1 (
set "path_position="
)

%print_debug% init.bat "START - nix_tools(%path_position%): Env Var - PATH=%path%"
if %nix_tools% geq 1 (
if exist "%GIT_INSTALL_ROOT%\mingw32" (
if "%path_position%" == "append" (
Expand All @@ -341,6 +362,7 @@ if %nix_tools% geq 1 (
)
)
)
%print_debug% init.bat "END - nix_tools(%path_position%): Env Var - PATH=%path%"

:SET_ENV

Expand Down Expand Up @@ -373,32 +395,41 @@ if defined git_locale (
)
endlocal && set LANG=%LANG%

%print_debug% init.bat "Env Var - GIT_INSTALL_ROOT=%GIT_INSTALL_ROOT%"
%print_debug% init.bat "Found Git in: '%GIT_INSTALL_ROOT%'"
%print_debug% init.bat "Found Git in: 'GIT_INSTALL_ROOT=%GIT_INSTALL_ROOT%'"
goto :PATH_ENHANCE

:NO_GIT
:: Skip this if GIT WAS FOUND else we did 'endlocal' above!
endlocal

:PATH_ENHANCE
%print_debug% init.bat "START - vendor/bin(prepend): Env Var - PATH=%path%"
set "path=%CMDER_ROOT%\vendor\bin;%path%"
%print_debug% init.bat "END - vendor/bin(prepend): Env Var - PATH=%path%"

:USER_CONFIG_START
%print_debug% init.bat "START - bin(prepend): Env Var - PATH=%path%"
if %max_depth% gtr 1 (
%lib_path% enhance_path_recursive "%CMDER_ROOT%\bin" 0 %max_depth%
) else (
set "path=%CMDER_ROOT%\bin;%path%"
)
%print_debug% init.bat "END - bin(prepend): Env Var - PATH=%path%"


if defined CMDER_USER_BIN (
%print_debug% init.bat "START - user_bin(prepend): Env Var - PATH=%path%"
if %max_depth% gtr 1 (
%lib_path% enhance_path_recursive "%CMDER_USER_BIN%" 0 %max_depth%
) else (
set "path=%CMDER_USER_ROOT%\bin;%path%"
)
%print_debug% init.bat "END - user_bin(prepend): Env Var - PATH=!path!"
)

%print_debug% init.bat "START - cmder_root(append): Env Var - PATH=%path%"
set "path=%path%;%CMDER_ROOT%"
%print_debug% init.bat "END - cmder_root(append): Env Var - PATH=%path%"

:: Drop *.bat and *.cmd files into "%CMDER_ROOT%\config\profile.d"
:: to run them at startup.
Expand Down