From 574d3e5a7b31d6d4a672163f52592bd0f681da0e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 12 Feb 2009 23:23:53 +0100 Subject: [PATCH] Teach add-shortcut.tcl to enable QuickEdit By calling /share/msysGit/add-shortcut.tcl EnableQuickEdit, you can enable QuickEdit in _all_ console windows (i.e. change the default). Signed-off-by: Johannes Schindelin --- share/msysGit/add-shortcut.tcl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/share/msysGit/add-shortcut.tcl b/share/msysGit/add-shortcut.tcl index 2b7a5477..06389a0c 100644 --- a/share/msysGit/add-shortcut.tcl +++ b/share/msysGit/add-shortcut.tcl @@ -12,6 +12,7 @@ switch -regexp [lindex $argv 0] { puts " AllUsersStartMenu create an icon in All Users' start menu" puts " AllUsersStartMenu2 create an icon in All Users'" puts " start menu's Programs>msysGit" + puts " EnableQuickEdit enable the QuickEdit mode in the console" puts "" puts "Short options are q, d, s, s2, a and a2." exit 1 @@ -53,6 +54,17 @@ switch -regexp [lindex $argv 0] { file mkdir $programs/$startMenuName set targetDirectory $programs/$startMenuName } +"^(EnableQuickEdit|quickedit)$" { + package require registry 1.0 + regsub "^(.*)/etc/inputrc" $env(INPUTRC) "\\1" msysRoot + set sh [string map { "\\" "_" "/" "_" } $msysRoot/bin/sh.exe] + set key "HKEY_CURRENT_USER\\Console" + registry set $key "QuickEdit" 1 dword + registry set $key "HistoryBufferSize" 999 dword + registry broadcast $key + registry broadcast "Console" + exit 0 +} default { puts "Unknown argument: [lindex $argv 0]" exit 1 -- 2.11.4.GIT