24

I recently installed Clink and I'm quite happy with the history being kept in between session and the ability to search history using Ctrl+R / Ctrl-S.

However, I would very much like to have access to the full list of commands that Clink currently has, much like the history command on *nix system.

Despite what I consider thorough online search, I've not found any Clink hotkey or script to do so. If anyone has a working solution for that, I'd be very interested to hear about it.

jarnowicz
  • 175
joce
  • 454

5 Answers5

21

Workaround:

type "%LOCALAPPDATA%\clink\.history"

But by default clink writes history only on exit, to change it:

clink set history_io 1

or modify history_io value in %LOCALAPPDATA%\clink\settings

ISanych
  • 406
4

For this I use a history.bat file:

rem Batch file that provides bash history like list with numbered items
@echo off
setlocal EnableDelayedExpansion
set lno=1
for /F "delims=" %%h in ('type "%LOCALAPPDATA%\clink\.history"') do (
    echo !lno!: %%h
    set /A lno= !lno! + 1
)
4

The "renovated" version of Clink has a history command, just like bash. Yay!

Martin_W
  • 271
2

According to this bug report, it clink does not have a history command feature.

David
  • 2,362
0

I have a portable version of clink https://github.com/mridgers/clink/releases/download/0.4.9/clink_0.4.9.zip , so the corresponding directory is profile under the clink directory. There I see .history and settings.