Posted: . At: 11:49 AM. This was 9 years ago. Post ID: 8242
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Add BASH styled line editing and persistent history to the CMD window.


This useful utility: http://mridgers.github.io/clink/. Will allow persistent history and line editing in the Windows 10 CMD window. This makes the CMD session much more enjoyable to use.

Press Alt-H in the CMD window to get help that shows the keyboard shortcuts for this addon.

Microsoft Windows [Version 10.0.10130]
(c) 2015 Microsoft Corporation. All rights reserved.
Clink v0.4.4 [git:a60c0a] Copyright (c) 2014 Martin Ridgers
http://mridgers.github.io/clink
 
 
C:\Users\mike>
C-@     : set-mark                                A-&     : tilde-expand
C-a     : beginning-of-line                       A-*     : insert-completions
C-b     : backward-char                           A--     : digit-argument
C-c     : ctrl-c                                  A-.     : yank-last-arg
C-d     : delete-char                             A-0     : digit-argument
C-e     : end-of-line                             A-1     : digit-argument
C-f     : forward-char                            A-2     : digit-argument
C-g     : abort                                   A-3     : digit-argument
C-h     : backward-delete-char                    A-4     : digit-argument
C-i     : clink-completion-shim                   A-5     : digit-argument
C-j     : accept-line                             A-6     : digit-argument
C-k     : kill-line                               A-7     : digit-argument
C-l     : clear-screen                            A-8     : digit-argument
C-m     : accept-line                             A-9     : digit-argument
C-n     : next-history                            A-<     : beginning-of-history
C-p     : previous-history                        A-=     : possible-completions
C-q     : reload-lua-state                        A->     : end-of-history
C-r     : reverse-search-history                  A-?     : possible-completions
C-s     : forward-search-history                  A-\     : delete-horizontal-space
C-t     : transpose-chars                         A-_     : yank-last-arg
C-u     : unix-line-discard                       A-b     : backward-word
C-v     : paste-from-clipboard                    A-c     : capitalize-word
C-w     : unix-word-rubout                        A-d     : kill-word
C-y     : yank                                    A-f     : forward-word
C-z     : undo                                    A-h     : show-rl-help
C-]     : character-search                        A-l     : downcase-word
C-_     : undo                                    A-n     : non-incremental-forward-search-history
A-C-c   : copy-line-to-clipboard                  A-p     : non-incremental-reverse-search-history
A-C-e   : expand-env-vars                         A-r     : revert-line
A-C-g   : abort                                   A-t     : transpose-words
A-C-h   : backward-kill-word                      A-u     : upcase-word
A-C-i   : tab-insert                              A-y     : yank-pop
A-C-j   : vi-editing-mode                         A-~     : tilde-expand
A-C-m   : vi-editing-mode                         C-x,C-g : abort
A-C-r   : revert-line                             C-x,C-r : re-read-init-file
A-C-u   : up-directory                            C-x,C-u : undo
A-C-y   : yank-nth-arg                            C-x,C-x : exchange-point-and-mark
A-C-[   : complete                                C-x,(   : start-kbd-macro
A-C-]   : character-search-backward               C-x,)   : end-kbd-macro
A-      : set-mark                                C-x,e   : call-last-kbd-macro
A-#     : insert-comment
C:\Users\mike>

Press TAB twice at the prompt after typing one letter to show all possible commands that start with that letter.

C:\Users\mike>l
LanguageComponentsInstallerComHandler.exe  label.exe
LaunchTM.exe                               licensingdiag.exe
LaunchWinApp.exe                           lodctr.exe
LegacyNetUXHost.exe                        log.exe
LicenseManagerShellext.exe                 logagent.exe
LicensingUI.exe                            logman.exe
Links\                                     logoff.exe
LocationNotificationWindows.exe            lpkinstall.exe
Locator.exe                                lpksetup.exe
LockAppHost.exe                            lpremove.exe
LockScreenContentServer.exe                lsass.exe
LogonUI.exe                                lusrmgr.msc
LsaIso.exe
C:\Users\mike>

This makes the CMD window much like a Linux/UNIX prompt and less like a boring and useless CMD prompt. A great addition to any Windows machine. Especially the persistent history feature.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.