clink

Bash's powerful command line editing in cmd.exe

  • 所有者: mridgers/clink
  • 平台:
  • 許可證: GNU General Public License v3.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Overview

Clink combines the native Windows shell cmd.exe with the powerful command line editing features of the GNU Readline library, which provides rich completion, history, and line-editing capabilities. Readline is best known for its use in the well-known Unix shell Bash, the standard shell for Mac OS X and many Linux distributions.

Download

Downloads for the latest release of Clink can be found here.

Features

  • The same line editing as Bash (from GNU's Readline library).
  • History persistence between sessions.
  • Context sensitive completion;
    • Executables (and aliases).
    • Directory commands.
    • Environment variables
    • Thirdparty tools; Git, Mercurial, SVN, Go, and P4.
  • New keyboard shortcuts;
    • Paste from clipboard (Ctrl-V).
    • Incremental history search (Ctrl-R/Ctrl-S).
    • Powerful completion (TAB).
    • Undo (Ctrl-Z).
    • Automatic "cd .." (Ctrl-PgUp).
    • Environment variable expansion (Ctrl-Alt-E).
    • (press Alt-H for many more...)
  • Scriptable completion with Lua.
  • Coloured and scriptable prompt.
  • Auto-answering of the "Terminate batch job?" prompt.

Usage

There are a variety of ways to start Clink;

  1. If you installed the auto-run, just start cmd.exe. Run clink autorun --help for more info.
  2. To manually start, run the Clink shortcut from the Start menu (or the clink.bat located in the install directory).
  3. To establish Clink to an existing cmd.exe process, use "<install_dir>\clink.exe inject"

Clink can be extended through its Lua API which allows easy creation context sensitive match generators, prompt filtering, and more. More details can be found in Clink's documentation which can be found here.

Clink's uses Premake to generate Visual Studio solutions or makefiles for MinGW. Note that Premake >= 5.0-alpha12 is required.

  1. Cd to your clone of Clink.
  2. Run "premake5.exe <toolchain>" (where "<toolchain>" is one of Premake's actions - see "premake5.exe --help")
  3. Build scripts will be generated in ".build\<toolchain>". For example; .build\vs2013\clink.sln.
  4. Call your toolchain of choice (VS, mingw32-make.exe, msbuild.exe, etc). GNU makefiles (Premake's gmake target) have a help target for more info.

License

Clink is distributed under the terms of the GNU General Public License v3.0.

主要指標

概覽
名稱與所有者mridgers/clink
主編程語言C
編程語言C (語言數: 12)
平台
許可證GNU General Public License v3.0
所有者活动
創建於2014-01-02 21:19:11
推送於2024-08-03 13:25:55
最后一次提交2024-08-03 15:24:04
發布數22
最新版本名稱1.0.0a5 (發布於 )
第一版名稱0.1 (發布於 )
用户参与
星數3.3k
關注者數117
派生數282
提交數2.1k
已啟用問題?
問題數552
打開的問題數157
拉請求數19
打開的拉請求數8
關閉的拉請求數12
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?