mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
cleanup
This commit is contained in:
parent
2c620d1d67
commit
954937cf97
8
vendor/bin/vscode_init.cmd
vendored
8
vendor/bin/vscode_init.cmd
vendored
@ -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%"
|
||||
)
|
||||
|
||||
|
64
vscode_init_args.cmd
Normal file
64
vscode_init_args.cmd
Normal file
@ -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!
|
Loading…
Reference in New Issue
Block a user