Questions tagged [clink]

Clink is a small utility to enhance Microsoft Windows' "cmd.exe", adding more powerful command line completion, editing, and history.

Clink enhances your productivity in Microsoft Windows' "cmd.exe".

Features

  • The same line editing as Bash (from GNU's Readline library)
  • History persistence between sessions
  • Scriptable completion with Lua
  • New keyboard shortcuts
  • Coloured and scriptable prompt
  • And more...
17 questions
24
votes
5 answers

Getting the list of command history using Clink

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…
joce
  • 454
15
votes
4 answers

How to add current date/time to clink/cmder prompt

I'm a rather happy user of clink via the great cmder package. The only thing I miss is an easy way to set the command prompt to display the current date/time (and last exit code, history number, as in bash... etc). Could someone point me to the…
4
votes
1 answer

How do I modify Cmder to show my Git change summary on the prompt? (+A/~C/-D)

I can see the output of the branch name no problem (although, in version 1.3.4+ it also strangely outputs "master -> origin" when it didn't use to), but I can't figure out why it has never successfully shown changes. This works in Powershell+Poshgit…
Matt Kerr
  • 171
3
votes
2 answers

How do I set Clink's --profile option in ConEmu?

ConEmu's docs give us an elegant way of injecting Clink. However, I'd like to specify Clink's --profile option (docs) so that I can keep my Clink settings alongside other config files in a common location. Is this possible in ConEmu?
Charles Roper
  • 10,879
2
votes
1 answer

Why does Clink replace text in my command, and how can I disable this behavior?

I encountered an unexpected behavior while using Clink in my terminal. My system is Windows 10.0.18363. When I type: (venv) C:\marat\programs\BASE\MiriadRobot>!p ... Before I even press Enter, !p gets highlighted, and the following text appears…
Kitaram
  • 23
1
vote
1 answer

How to set Clink's output color?

Clink's default text output is in white. E.g. after injecting Clink, typing clinkTabTab shows: If I set the cmd window to black text on white background ("Properties" → "Colors"), this is the output: The second row cannot be seen, because it is…
Pacerier
  • 28,143
1
vote
2 answers

How to get bash commands in CLink

Some time ago I installed clink on one PC and it supports bash commands, like pwd, ls. Now I installed it on another PC and these commands are not recognized. Other features of clink, like auto-completion, reverse-i-search, prompt color are still…
Piotr G
  • 121
1
vote
0 answers

cmder using clink does not show git branch

When I tick "Use Clink in Cmder" in cmder settings, git branch names are not shown in cmder if I "Open in Terminal" the folder. If I untick it, it is shown, and the output is more colorful, as well. Is there any benefit to use Clink that cmder does…
1
vote
1 answer

cmder/conEmu hotkeys how to set up for for directory movements

I would like to define the following keys in Cmder: Alt+Up -> move to parent directory (Ctrl+Alt+U) Alt+Left -> move to previous directory (the one I was in before the last cd) Alt+Right -> move to next directory Any help ?
kofifus
  • 308
0
votes
0 answers

Why is my prompt reprint on horizontal ConEmu resize?

I've observed a weird behavior in my ConEmu shell: When i resize HORIZONTALLY the ConEmu window, and clink is enabled, after finishing the resize the shell prompt is being printed again: Before: After: It is really annoying and occurs on every…
Fr0stBit
  • 113
0
votes
2 answers

How can I ensure a blank line before every new prompt?

I'm using the Cmder package for my Windows command line environment. Some commands don't create a blank line after they've completed, which can make it more difficult to see every command that's been run. Is there a way to customize the command…
KatieK
  • 185
  • 1
  • 11
0
votes
0 answers

get bash-style command cycling with clink

With bash, even without changes to the .bashrc, I can write the beginning of a command (e.g. "gr"), and press the up key to cycle through commands with this perfix (e.g. "grep -R asdf ."). With clink, cycling up commands ignores the command prefix I…
0
votes
1 answer

Cmder Guest Windows 10, VirtualBox, See Available Drives is not working

I want to use cmder in my VirtualBox Guest, Windows 10 Enterprise version. First I used clink, And was working properly, but using cmder, is not showing the drives like clink. Here the output: How solve this?
0
votes
0 answers

far manager 3, conemu and clink - some integration issues

I use conemu as console and clink as shell and from conemu I launch far managaer using far . and this opens far manager on the current directory. After exiting far manager and returning on conemu I would like to be in the path I was in far manager…
res1
  • 464
0
votes
0 answers

Grab windows console output into a file (not redirection, no screen shots)

(Not redirection) I want to grab and save ALL the windows cmd console (win7) text into a file, without using the mouse. I need the text for doing command completion, instead of copy/pasting parts of words from the console. This is on win7 with cmd +…
mosh
  • 317
1
2