diff --git a/vendor/bin/vscode_init.cmd b/vendor/bin/vscode_init.cmd index fc6b300..bbe1ba2 100644 --- a/vendor/bin/vscode_init.cmd +++ b/vendor/bin/vscode_init.cmd @@ -9,17 +9,15 @@ if not defined CMDER_ROOT ( ) if defined cmder_user_bin ( - if exist "%cmder_user_bin%\vscode_init_args.cmd" ( - set CMDER_VSCODE_INIT_ARGS=%cmder_user_bin%\vscode_init_args.cmd - ) -) else if exist "%CMDER_ROOT%\bin\vscode_init_args.cmd" ( + set CMDER_VSCODE_INIT_ARGS=%cmder_user_bin%\vscode_init_args.cmd +) else ( set CMDER_VSCODE_INIT_ARGS=%CMDER_ROOT%\bin\vscode_init_args.cmd ) if not exist "%CMDER_VSCODE_INIT_ARGS%" ( echo Creating initial "%CMDER_VSCODE_INIT_ARGS%"... copy "%CMDER_ROOT%\vendor\bin\vscode_init_args.cmd.default" "%CMDER_VSCODE_INIT_ARGS%" -else ( +) else ( call "%CMDER_VSCODE_INIT_ARGS%" ) diff --git a/vscode_init_args.cmd b/vscode_init_args.cmd new file mode 100644 index 0000000..87b4071 --- /dev/null +++ b/vscode_init_args.cmd @@ -0,0 +1,64 @@ +@echo off + +:: Below are the default Cmder session settings: +:: +:: See "%CMDER_ROOT%\README.md" for details on these settings. +:: +:: `Cmder.exe` Arguments: +:: ---------------------- +:: +:: `/c [cmder_user_cfg_root]` +:: NOT USED BY DEFAULT +:: cmder_user_bin=[cmder_user_cfg_root]\bin +:: cmder_user_config=[cmder_user_cfg_root]\config +:: +:: `init.bat` Arguments +:: -------------------- +:: +:: `/d` +:: debug_output=0 +:: +:: `/v` +:: verbose_output=0 +:: +:: `/f` +:: fast_init=0 +:: +:: `/nix_tools` +:: nix_tools=1 +:: +:: `/t` +:: time_init=0 +:: +:: `/max_depth` +:: max_depth=1 +:: +:: `/user_aliases` +:: user_aliases= +:: +:: `/git_install_root` +:: GIT_INSTALL_ROOT= +:: +:: `/home` +:: HOME= +:: +:: `/svn_ssh` +:: SVN_SSH= + +echo Applying Cmder VSCode settings from '%~0'... + +if defined CMDER_CONFIGURED ( + :: Set Cmder settings here for when VSCode is launched inside Cmder. + set CMDER_CONFIGURED=2 +) else ( + :: Set Cmder settings here for when VSCode is launched from outside Cmder. + set nix_tools=0 + set fast_init=1 + set cmder_user_bin=c:\users\dtgam\cmder\bin + set cmder_user_config=c:\users\dtgam\cmder\config +) + +set verbose_output=1 + +:: Set all required Cmder VSCode terminal environment settings above this line. +echo Applying Cmder VSCode settings is complete!