From d8444dae973322e1052a6773cffdb604e489154c Mon Sep 17 00:00:00 2001 From: Shahzeb Ihsan Date: Fri, 17 Mar 2017 10:59:12 +0800 Subject: [PATCH] Set history_io=3 in default Clink settings Currently the "history" command in Cmder prints commands without any index associated with any command, so you can copy/paste a command or use "!!" to execute a command from the history but, unlike BASH, you can't do "!". "cat" has a switch, "-n", which prints line numbers of the file being printed. This, in conjunction with "history_io=3" in Clink settings (to read/write history when editing a command") works just like BASH, i.e., you can use the index printed next to a command in the history to execute that command as "!". --- vendor/init.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/init.bat b/vendor/init.bat index 730efea..b874709 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -26,6 +26,7 @@ if "%PROCESSOR_ARCHITECTURE%"=="x86" ( :: Tell the user about the clink config files... if not exist "%CMDER_ROOT%\config\settings" ( + set clink.history_io=3 echo Generating clink initial settings in "%CMDER_ROOT%\config\settings" echo Additional *.lua files in "%CMDER_ROOT%\config" are loaded on startup. )