Similarly to how you can search through your history in a bash shell. Or endlessly hitting the up arrow until you find it. You have a command that you executed previously that you want to re-execute or edit slightly and execute without having to retype the whole thing. But there’s actually some useful features of rlwrap that most developers don’t seem to be aware of, and that’s what this post hopes to share. Note rlwrap is available for Linux and macOS only, not for Windows.ĭevelopers usually install rlwrap and update their q alias and are happy that they no longer have to type entire lines of code left-to-right, in a language read right-to-left, without being able to use the arrow keys. Linux: code.kx.com/q/learn/install/linux/#install-rlwrap MacOS: code.kx.com/q/learn/install/macos/#install-rlwrap ![]() If you aren’t already using rlwrap here’s how to install it. ![]() Rlwrap is a small utility which enables these features. The out-of-the-box kdb+ console does not support using arrow keys to edit the line of code you are writing, or go back through the history of commands you have entered. To that end, what I outline below will hopefully enable you to get the most out of rlwrap with q. ![]() Sometimes developers have a choice spend five minutes completing a menial task or spend a little longer streamlining it for future convenience.
0 Comments
Leave a Reply. |