Last active
May 22, 2024 11:06
-
-
Save mikesigs/cb60735581113d61d684 to your computer and use it in GitHub Desktop.
Cmder Customization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set ALIASES=%CMDER_ROOT%\config\aliases | |
setlocal | |
:: handle quotes within command definition, e.g. quoted long file names | |
set _x="%*" | |
set _x=%_x:"=% | |
:: check command usage | |
if ["%_x%"] == [""] echo Use /? for help & echo. & goto :p_show | |
if ["%1"] == ["/?"] goto:p_help | |
if ["%1"] == ["/reload"] goto:p_reload | |
:: /d flag for delete existing alias | |
if ["%1"] == ["/d"] goto:p_del %* | |
if ["%2"] == [""] echo Insufficient parameters. & goto:p_help | |
:: validate alias | |
for /f "delims== tokens=1" %%G in ("%_x%") do set alias=%%G | |
set _temp=%alias: =% | |
if not ["%_temp%"] == ["%alias%"] ( | |
echo Your alias name can not contain a space | |
endlocal | |
goto:eof | |
) | |
:: replace already defined alias | |
findstr /b /v /i "%alias%=" "%ALIASES%" >> "%ALIASES%.tmp" | |
echo %* >> "%ALIASES%.tmp" && type "%ALIASES%.tmp" > "%ALIASES%" & @del /f /q "%ALIASES%.tmp" | |
doskey /macrofile="%ALIASES%" | |
endlocal | |
goto:eof | |
:p_del | |
findstr /b /v /i "%2=" "%ALIASES%" >> "%ALIASES%.tmp" | |
type "%ALIASES%".tmp > "%ALIASES%" & @del /f /q "%ALIASES%.tmp" | |
doskey /macrofile=%ALIASES% | |
goto:eof | |
:p_reload | |
doskey /macrofile="%ALIASES%" | |
echo Aliases reloaded | |
goto:eof | |
:p_show | |
type "%ALIASES%" || echo No aliases found at "%ALIASES%" | |
goto :eof | |
:p_help | |
echo.Usage: | |
echo. alias [/reload] [/d] [name=full command] | |
echo. /reload Reload the aliases file | |
echo. /d Delete an alias (must be followed by the alias name) | |
echo. | |
echo. If alias is called with any parameters, it will display the list of existing aliases. | |
echo. In the command, you can use the following notations: | |
echo. $* allows the alias to assume all the parameters of the supplied command. | |
echo. $1-$9 Allows you to seperate parameter by number, much like %%1 in batch. | |
echo. $T is the command seperator, allowing you to string several commands together into one alias. | |
echo. For more information, read DOSKEY/? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e.=explorer . | |
ls=ls --color $* | |
ll=ls -la --color $* | |
pwd=cd | |
clear=cls | |
edit=notepad++ $* | |
vsignore=curl https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore -o .gitignore | |
aliases=cat %CMDER_ROOT%\config\aliases | |
npmls=npm ls -g --depth=0 | |
be=bundle exec $* | |
diffmerge=sgdm $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local parser = clink.arg.new_parser | |
local function packages(token) | |
local packagesDir = clink.get_env("chocolateyinstall")..'\\lib' | |
local packages = clink.find_dirs(packagesDir.."/*") | |
local res = {} | |
for _,package in ipairs(packages) do | |
if string.match(package:lower(), token:lower()) then | |
table.insert(res, package) | |
end | |
end | |
return res | |
end | |
local clist_parser = parser( | |
"-all", "-allversions", | |
"-lo", "-localonly", | |
"-pre", "-prerelease", | |
"-source") | |
local cinst_parser = parser( | |
-- TODO: Path to packages config. | |
-- See https://github.com/chocolatey/chocolatey/wiki/CommandsInstall#packagesconfig---v09813 | |
{"all", "packages.config"}, | |
"-ia", "-installArgs", "-installArguments", | |
"-ignoreDependencies", | |
"-notSilent", | |
"-overrideArguments", | |
"-params", "-parameters", "-packageparameters", | |
"-pre", "-prerelease", | |
"-source" .. parser({"ruby", "webpi", "cygwin", "python"}), | |
"-version", | |
"-x86", "-forcex86") | |
local cuninst_parser = parser({packages}, "-version") | |
local cup_parser = parser( | |
{"all"}, | |
"-pre", "-prerelease", | |
"-source" .. parser({"ruby", "webpi", "cygwin", "python"})) | |
local csources_parser=parser({ | |
"add"..parser("-name", "-source"), | |
"disable", | |
"enable", | |
"list", | |
"remove"}) | |
local cver_parser=parser("-source", "-pre", "-prerelease", "-lo", "-localonly") | |
local chocolatey_parser = parser({ | |
"install"..cinst_parser, | |
"installmissing", | |
"update"..cup_parser, | |
"list"..clist_parser, | |
"search"..clist_parser, | |
"sources"..csources_parser, | |
"help", | |
"version"..cver_parser, | |
"gem"..parser("-version"), | |
"python"..parser("-version"), | |
"webpi", | |
"windowsfeatures", | |
"uninstall" | |
}, "/?") | |
clink.arg.register_parser("choco", chocolatey_parser) | |
clink.arg.register_parser("chocolatey", chocolatey_parser) | |
clink.arg.register_parser("cinst", cinst_parser) | |
clink.arg.register_parser("clist", clist_parser) | |
clink.arg.register_parser("cuninst", cuninst_parser) | |
clink.arg.register_parser("cup", cup_parser) | |
clink.arg.register_parser("csources", csources_parser) | |
clink.arg.register_parser("cver", cver_parser) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="ColorTable00" type="dword" data="00222827"/> | |
<value name="ColorTable01" type="dword" data="009e5401"/> | |
<value name="ColorTable02" type="dword" data="0004aa74"/> | |
<value name="ColorTable03" type="dword" data="00a6831a"/> | |
<value name="ColorTable04" type="dword" data="003403a7"/> | |
<value name="ColorTable05" type="dword" data="009c5689"/> | |
<value name="ColorTable06" type="dword" data="0049b6b6"/> | |
<value name="ColorTable07" type="dword" data="00cacaca"/> | |
<value name="ColorTable08" type="dword" data="007c7c7c"/> | |
<value name="ColorTable09" type="dword" data="00f58303"/> | |
<value name="ColorTable10" type="dword" data="0006d08d"/> | |
<value name="ColorTable11" type="dword" data="00e5c258"/> | |
<value name="ColorTable12" type="dword" data="004b04f3"/> | |
<value name="ColorTable13" type="dword" data="00b87da8"/> | |
<value name="ColorTable14" type="dword" data="0081cccc"/> | |
<value name="ColorTable15" type="dword" data="00ffffff"/> | |
<value name="ColorTable16" type="dword" data="00222827"/> | |
<value name="ColorTable17" type="dword" data="009e5401"/> | |
<value name="ColorTable18" type="dword" data="0004aa74"/> | |
<value name="ColorTable19" type="dword" data="00a6831a"/> | |
<value name="ColorTable20" type="dword" data="003403a7"/> | |
<value name="ColorTable21" type="dword" data="009c5689"/> | |
<value name="ColorTable22" type="dword" data="0049b6b6"/> | |
<value name="ColorTable23" type="dword" data="00cacaca"/> | |
<value name="ColorTable24" type="dword" data="007c7c7c"/> | |
<value name="ColorTable25" type="dword" data="00f58303"/> | |
<value name="ColorTable26" type="dword" data="0006d08d"/> | |
<value name="ColorTable27" type="dword" data="00e5c258"/> | |
<value name="ColorTable28" type="dword" data="004b04f3"/> | |
<value name="ColorTable29" type="dword" data="00b87da8"/> | |
<value name="ColorTable30" type="dword" data="0081cccc"/> | |
<value name="ColorTable31" type="dword" data="00ffffff"/> | |
<value name="ExtendColors" type="hex" data="00"/> | |
<value name="ExtendColorIdx" type="hex" data="0e"/> | |
<value name="TextColorIdx" type="hex" data="10"/> | |
<value name="BackColorIdx" type="hex" data="10"/> | |
<value name="PopTextColorIdx" type="hex" data="10"/> | |
<value name="PopBackColorIdx" type="hex" data="10"/> | |
<value name="ExtendFonts" type="hex" data="00"/> | |
<value name="ExtendFontNormalIdx" type="hex" data="01"/> | |
<value name="ExtendFontBoldIdx" type="hex" data="0c"/> | |
<value name="ExtendFontItalicIdx" type="hex" data="0d"/> | |
<value name="CursorTypeActive" type="dword" data="000232c1"/> | |
<value name="CursorTypeInactive" type="dword" data="00823282"/> | |
<value name="ClipboardDetectLineEnd" type="hex" data="01"/> | |
<value name="ClipboardBashMargin" type="hex" data="00"/> | |
<value name="ClipboardTrimTrailing" type="hex" data="02"/> | |
<value name="ClipboardEOL" type="hex" data="00"/> | |
<value name="ClipboardArrowStart" type="hex" data="00"/> | |
<value name="ClipboardAllLines" type="hex" data="01"/> | |
<value name="ClipboardFirstLine" type="hex" data="01"/> | |
<value name="ClipboardClickPromptPosition" type="hex" data="00"/> | |
<value name="ClipboardDeleteLeftWord" type="hex" data="01"/> | |
<value name="TrueColorerSupport" type="hex" data="01"/> | |
<value name="FadeInactive" type="hex" data="01"/> | |
<value name="FadeInactiveLow" type="hex" data="00"/> | |
<value name="FadeInactiveHigh" type="hex" data="c8"/> | |
<value name="ConVisible" type="hex" data="00"/> | |
<value name="ConInMode" type="dword" data="ffffffff"/> | |
<value name="UseInjects" type="hex" data="01"/> | |
<value name="SetDefaultTerminal" type="hex" data="01"/> | |
<value name="SetDefaultTerminalStartup" type="hex" data="01"/> | |
<value name="DefaultTerminalNoInjects" type="hex" data="00"/> | |
<value name="DefaultTerminalConfirm" type="hex" data="02"/> | |
<value name="DefaultTerminalApps" type="string" data="explorer.exe|devenv.exe"/> | |
<value name="ProcessAnsi" type="hex" data="01"/> | |
<value name="UseClink" type="hex" data="01"/> | |
<value name="StartType" type="hex" data="02"/> | |
<value name="CmdLine" type="string" data=""/> | |
<value name="StartTasksFile" type="string" data=""/> | |
<value name="StartTasksName" type="string" data="{VsDevCmd}"/> | |
<value name="StartFarFolders" type="hex" data="00"/> | |
<value name="StartFarEditors" type="hex" data="00"/> | |
<value name="StoreTaskbarkTasks" type="hex" data="01"/> | |
<value name="StoreTaskbarCommands" type="hex" data="00"/> | |
<value name="CmdLineHistory" type="multi"><line data=";C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\"/></value> | |
<value name="SingleInstance" type="hex" data="00"/> | |
<value name="ShowHelpTooltips" type="hex" data="01"/> | |
<value name="Multi" type="hex" data="01"/> | |
<value name="Multi.ShowButtons" type="hex" data="01"/> | |
<value name="Multi.NumberInCaption" type="hex" data="00"/> | |
<value name="Multi.CloseConfirm" type="hex" data="00"/> | |
<value name="Multi.CloseEditViewConfirm" type="hex" data="00"/> | |
<value name="Multi.NewConfirm" type="hex" data="01"/> | |
<value name="Multi.UseArrows" type="hex" data="00"/> | |
<value name="Multi.UseNumbers" type="hex" data="01"/> | |
<value name="Multi.UseWinTab" type="hex" data="00"/> | |
<value name="Multi.AutoCreate" type="hex" data="00"/> | |
<value name="Multi.LeaveOnClose" type="hex" data="00"/> | |
<value name="Multi.HideOnClose" type="hex" data="00"/> | |
<value name="Multi.MinByEsc" type="hex" data="00"/> | |
<value name="MapShiftEscToEsc" type="hex" data="01"/> | |
<value name="Multi.Iterate" type="hex" data="01"/> | |
<value name="Multi.SplitWidth" type="hex" data="04"/> | |
<value name="Multi.SplitHeight" type="hex" data="04"/> | |
<value name="KeyboardHooks" type="hex" data="02"/> | |
<value name="FontName" type="string" data="Consolas"/> | |
<value name="FontName2" type="string" data="Lucida Console"/> | |
<value name="FontAutoSize" type="hex" data="00"/> | |
<value name="FontSize" type="dword" data="00000010"/> | |
<value name="FontSizeX" type="dword" data="00000000"/> | |
<value name="FontSizeX2" type="dword" data="00000000"/> | |
<value name="FontSizeX3" type="dword" data="00000000"/> | |
<value name="FontCharSet" type="hex" data="00"/> | |
<value name="Anti-aliasing" type="dword" data="00000006"/> | |
<value name="FontBold" type="hex" data="00"/> | |
<value name="FontItalic" type="hex" data="00"/> | |
<value name="Monospace" type="hex" data="01"/> | |
<value name="BackGround Image show" type="hex" data="00"/> | |
<value name="BackGround Image" type="string" data="c:\back.bmp"/> | |
<value name="bgImageDarker" type="hex" data="ff"/> | |
<value name="bgImageColors" type="dword" data="ffffffff"/> | |
<value name="bgOperation" type="hex" data="00"/> | |
<value name="bgPluginAllowed" type="hex" data="01"/> | |
<value name="AlphaValue" type="hex" data="fa"/> | |
<value name="AlphaValueSeparate" type="hex" data="01"/> | |
<value name="AlphaValueInactive" type="hex" data="e5"/> | |
<value name="UserScreenTransparent" type="hex" data="00"/> | |
<value name="ColorKeyTransparent" type="hex" data="00"/> | |
<value name="ColorKeyValue" type="dword" data="00000000"/> | |
<value name="UseCurrentSizePos" type="hex" data="01"/> | |
<value name="WindowMode" type="dword" data="0000051f"/> | |
<value name="ConWnd Width" type="dword" data="0000005c"/> | |
<value name="ConWnd Height" type="dword" data="0000002f"/> | |
<value name="Cascaded" type="hex" data="01"/> | |
<value name="ConWnd X" type="dword" data="00000004"/> | |
<value name="ConWnd Y" type="dword" data="00000000"/> | |
<value name="16bit Height" type="dword" data="00000000"/> | |
<value name="AutoSaveSizePos" type="hex" data="00"/> | |
<value name="IntegralSize" type="hex" data="00"/> | |
<value name="QuakeStyle" type="hex" data="00"/> | |
<value name="QuakeAnimation" type="dword" data="0000012c"/> | |
<value name="HideCaption" type="hex" data="00"/> | |
<value name="HideChildCaption" type="hex" data="01"/> | |
<value name="FocusInChildWindows" type="hex" data="01"/> | |
<value name="HideCaptionAlways" type="hex" data="00"/> | |
<value name="HideCaptionAlwaysFrame" type="hex" data="ff"/> | |
<value name="HideCaptionAlwaysDelay" type="dword" data="000007d0"/> | |
<value name="HideCaptionAlwaysDisappear" type="dword" data="000007d0"/> | |
<value name="DownShowHiddenMessage" type="hex" data="00"/> | |
<value name="ConsoleFontName" type="string" data="Lucida Console"/> | |
<value name="ConsoleFontWidth" type="dword" data="00000003"/> | |
<value name="ConsoleFontHeight" type="dword" data="00000005"/> | |
<value name="DefaultBufferHeight" type="dword" data="000003e8"/> | |
<value name="AutoBufferHeight" type="hex" data="01"/> | |
<value name="CmdOutputCP" type="dword" data="00000000"/> | |
<value name="ComSpec.Type" type="hex" data="00"/> | |
<value name="ComSpec.Bits" type="hex" data="00"/> | |
<value name="ComSpec.UpdateEnv" type="hex" data="00"/> | |
<value name="ComSpec.EnvAddPath" type="hex" data="01"/> | |
<value name="ComSpec.EnvAddExePath" type="hex" data="01"/> | |
<value name="ComSpec.UncPaths" type="hex" data="01"/> | |
<value name="ComSpec.Path" type="string" data=""/> | |
<value name="ConsoleTextSelection" type="hex" data="01"/> | |
<value name="CTS.AutoCopy" type="hex" data="01"/> | |
<value name="CTS.EndOnTyping" type="hex" data="00"/> | |
<value name="CTS.EndOnKeyPress" type="hex" data="00"/> | |
<value name="CTS.Freeze" type="hex" data="00"/> | |
<value name="CTS.SelectBlock" type="hex" data="01"/> | |
<value name="CTS.SelectText" type="hex" data="01"/> | |
<value name="CTS.ActMode" type="hex" data="02"/> | |
<value name="CTS.RBtnAction" type="hex" data="03"/> | |
<value name="CTS.MBtnAction" type="hex" data="00"/> | |
<value name="CTS.ColorIndex" type="hex" data="e0"/> | |
<value name="ClipboardConfirmEnter" type="hex" data="01"/> | |
<value name="ClipboardConfirmLonger" type="dword" data="000000c8"/> | |
<value name="FarGotoEditorOpt" type="hex" data="01"/> | |
<value name="FarGotoEditorPath" type="string" data="far.exe /e%1:%2 "%3""/> | |
<value name="FixFarBorders" type="hex" data="01"/> | |
<value name="FixFarBordersRanges" type="string" data="2013-25C4;"/> | |
<value name="ExtendUCharMap" type="hex" data="01"/> | |
<value name="EnhanceGraphics" type="hex" data="01"/> | |
<value name="EnhanceButtons" type="hex" data="00"/> | |
<value name="PartBrush75" type="hex" data="c8"/> | |
<value name="PartBrush50" type="hex" data="96"/> | |
<value name="PartBrush25" type="hex" data="5a"/> | |
<value name="PartBrushBlack" type="hex" data="20"/> | |
<value name="RightClick opens context menu" type="hex" data="02"/> | |
<value name="RightClickMacro2" type="string" data=""/> | |
<value name="SendAltTab" type="hex" data="00"/> | |
<value name="SendAltEsc" type="hex" data="00"/> | |
<value name="SendAltPrintScrn" type="hex" data="00"/> | |
<value name="SendPrintScrn" type="hex" data="00"/> | |
<value name="SendCtrlEsc" type="hex" data="00"/> | |
<value name="Min2Tray" type="hex" data="00"/> | |
<value name="AlwaysShowTrayIcon" type="hex" data="00"/> | |
<value name="SafeFarClose" type="hex" data="01"/> | |
<value name="SafeFarCloseMacro" type="string" data=""/> | |
<value name="FARuseASCIIsort" type="hex" data="00"/> | |
<value name="ShellNoZoneCheck" type="hex" data="00"/> | |
<value name="FixAltOnAltTab" type="hex" data="00"/> | |
<value name="DisableMouse" type="hex" data="01"/> | |
<value name="RSelectionFix" type="hex" data="01"/> | |
<value name="MouseSkipActivation" type="hex" data="01"/> | |
<value name="MouseSkipMoving" type="hex" data="01"/> | |
<value name="FarHourglass" type="hex" data="01"/> | |
<value name="FarHourglassDelay" type="dword" data="000001f4"/> | |
<value name="Dnd" type="hex" data="01"/> | |
<value name="DndDrop" type="hex" data="01"/> | |
<value name="DefCopy" type="hex" data="01"/> | |
<value name="DropUseMenu" type="hex" data="02"/> | |
<value name="DragOverlay" type="hex" data="01"/> | |
<value name="DragShowIcons" type="hex" data="01"/> | |
<value name="DebugSteps" type="hex" data="01"/> | |
<value name="DragPanel" type="hex" data="02"/> | |
<value name="DragPanelBothEdges" type="hex" data="00"/> | |
<value name="KeyBarRClick" type="hex" data="01"/> | |
<value name="StatusBar.Show" type="hex" data="00"/> | |
<value name="StatusBar.Flags" type="dword" data="00000002"/> | |
<value name="StatusFontFace" type="string" data="Tahoma"/> | |
<value name="StatusFontCharSet" type="dword" data="00000000"/> | |
<value name="StatusFontHeight" type="dword" data="0000000e"/> | |
<value name="StatusBar.Color.Back" type="dword" data="00404040"/> | |
<value name="StatusBar.Color.Light" type="dword" data="00ffffff"/> | |
<value name="StatusBar.Color.Dark" type="dword" data="00a0a0a0"/> | |
<value name="StatusBar.Hide.VCon" type="hex" data="00"/> | |
<value name="StatusBar.Hide.CapsL" type="hex" data="00"/> | |
<value name="StatusBar.Hide.NumL" type="hex" data="00"/> | |
<value name="StatusBar.Hide.ScrL" type="hex" data="00"/> | |
<value name="StatusBar.Hide.Lang" type="hex" data="01"/> | |
<value name="StatusBar.Hide.WPos" type="hex" data="01"/> | |
<value name="StatusBar.Hide.WSize" type="hex" data="01"/> | |
<value name="StatusBar.Hide.WClient" type="hex" data="01"/> | |
<value name="StatusBar.Hide.WWork" type="hex" data="01"/> | |
<value name="StatusBar.Hide.Style" type="hex" data="01"/> | |
<value name="StatusBar.Hide.StyleEx" type="hex" data="01"/> | |
<value name="StatusBar.Hide.hFore" type="hex" data="01"/> | |
<value name="StatusBar.Hide.hFocus" type="hex" data="01"/> | |
<value name="StatusBar.Hide.ABuf" type="hex" data="00"/> | |
<value name="StatusBar.Hide.CPos" type="hex" data="00"/> | |
<value name="StatusBar.Hide.CSize" type="hex" data="00"/> | |
<value name="StatusBar.Hide.BSize" type="hex" data="00"/> | |
<value name="StatusBar.Hide.CurX" type="hex" data="00"/> | |
<value name="StatusBar.Hide.CurY" type="hex" data="00"/> | |
<value name="StatusBar.Hide.CurS" type="hex" data="00"/> | |
<value name="StatusBar.Hide.CurI" type="hex" data="01"/> | |
<value name="StatusBar.Hide.ConEmuPID" type="hex" data="01"/> | |
<value name="StatusBar.Hide.ConEmuHWND" type="hex" data="01"/> | |
<value name="StatusBar.Hide.ConEmuView" type="hex" data="01"/> | |
<value name="StatusBar.Hide.Srv" type="hex" data="00"/> | |
<value name="StatusBar.Hide.SrvHWND" type="hex" data="01"/> | |
<value name="StatusBar.Hide.Transparency" type="hex" data="00"/> | |
<value name="StatusBar.Hide.New" type="hex" data="00"/> | |
<value name="StatusBar.Hide.Sync" type="hex" data="00"/> | |
<value name="StatusBar.Hide.Proc" type="hex" data="00"/> | |
<value name="StatusBar.Hide.Title" type="hex" data="01"/> | |
<value name="StatusBar.Hide.Resize" type="hex" data="00"/> | |
<value name="Tabs" type="hex" data="01"/> | |
<value name="TabsLocation" type="hex" data="01"/> | |
<value name="TabSelf" type="hex" data="01"/> | |
<value name="TabLazy" type="hex" data="01"/> | |
<value name="TabRecent" type="hex" data="01"/> | |
<value name="TabDblClick" type="dword" data="00000001"/> | |
<value name="TabsOnTaskBar" type="hex" data="02"/> | |
<value name="TaskBarOverlay" type="hex" data="01"/> | |
<value name="TabCloseMacro" type="string" data=""/> | |
<value name="TabFontFace" type="string" data="Segoe UI"/> | |
<value name="TabFontCharSet" type="dword" data="00000000"/> | |
<value name="TabFontHeight" type="dword" data="00000010"/> | |
<value name="SaveAllEditors" type="string" data=""/> | |
<value name="ToolbarAddSpace" type="dword" data="00000000"/> | |
<value name="TabConsole" type="string" data=" %n "/> | |
<value name="TabSkipWords" type="string" data="Administrator:|Администратор:"/> | |
<value name="TabPanels" type="string" data="<%c> %s"/> | |
<value name="TabEditor" type="string" data="<%c.%i>{%s}"/> | |
<value name="TabEditorModified" type="string" data="<%c.%i>[%s] *"/> | |
<value name="TabViewer" type="string" data="<%c.%i>[%s]"/> | |
<value name="TabLenMax" type="dword" data="00000014"/> | |
<value name="AdminTitleSuffix" type="string" data=" (Admin)"/> | |
<value name="AdminShowShield" type="hex" data="01"/> | |
<value name="HideInactiveConsoleTabs" type="hex" data="00"/> | |
<value name="ShowFarWindows" type="hex" data="01"/> | |
<value name="TryToCenter" type="hex" data="01"/> | |
<value name="CenterConsolePad" type="dword" data="00000008"/> | |
<value name="ShowScrollbar" type="hex" data="02"/> | |
<value name="ScrollBarAppearDelay" type="dword" data="00000064"/> | |
<value name="ScrollBarDisappearDelay" type="dword" data="000003e8"/> | |
<value name="IconID" type="dword" data="00000001"/> | |
<value name="MainTimerElapse" type="dword" data="0000000a"/> | |
<value name="MainTimerInactiveElapse" type="dword" data="000003e8"/> | |
<value name="AffinityMask" type="dword" data="00000000"/> | |
<value name="SkipFocusEvents" type="hex" data="00"/> | |
<value name="MonitorConsoleLang" type="hex" data="03"/> | |
<value name="DesktopMode" type="hex" data="00"/> | |
<value name="SnapToDesktopEdges" type="hex" data="00"/> | |
<value name="AlwaysOnTop" type="hex" data="00"/> | |
<value name="SleepInBackground" type="hex" data="01"/> | |
<value name="MinimizeOnLoseFocus" type="hex" data="00"/> | |
<value name="DisableFarFlashing" type="hex" data="00"/> | |
<value name="DisableAllFlashing" type="hex" data="00"/> | |
<value name="FindText" type="string" data="\"/> | |
<value name="FindMatchCase" type="hex" data="00"/> | |
<value name="FindMatchWholeWords" type="hex" data="00"/> | |
<value name="FindTransparent" type="hex" data="01"/> | |
<value name="PanView.BackColor" type="dword" data="30ffffff"/> | |
<value name="PanView.PFrame" type="dword" data="00000001"/> | |
<value name="PanView.PFrameColor" type="dword" data="28808080"/> | |
<value name="PanView.SFrame" type="dword" data="00000001"/> | |
<value name="PanView.SFrameColor" type="dword" data="07c0c0c0"/> | |
<value name="PanView.Thumbs.ImgSize" type="dword" data="00000060"/> | |
<value name="PanView.Thumbs.SpaceX1" type="dword" data="00000001"/> | |
<value name="PanView.Thumbs.SpaceY1" type="dword" data="00000001"/> | |
<value name="PanView.Thumbs.SpaceX2" type="dword" data="00000005"/> | |
<value name="PanView.Thumbs.SpaceY2" type="dword" data="00000014"/> | |
<value name="PanView.Thumbs.LabelSpacing" type="dword" data="00000002"/> | |
<value name="PanView.Thumbs.LabelPadding" type="dword" data="00000000"/> | |
<value name="PanView.Thumbs.FontName" type="string" data="Tahoma"/> | |
<value name="PanView.Thumbs.FontHeight" type="dword" data="0000000e"/> | |
<value name="PanView.Tiles.ImgSize" type="dword" data="00000030"/> | |
<value name="PanView.Tiles.SpaceX1" type="dword" data="00000004"/> | |
<value name="PanView.Tiles.SpaceY1" type="dword" data="00000004"/> | |
<value name="PanView.Tiles.SpaceX2" type="dword" data="000000ac"/> | |
<value name="PanView.Tiles.SpaceY2" type="dword" data="00000004"/> | |
<value name="PanView.Tiles.LabelSpacing" type="dword" data="00000004"/> | |
<value name="PanView.Tiles.LabelPadding" type="dword" data="00000001"/> | |
<value name="PanView.Tiles.FontName" type="string" data="Tahoma"/> | |
<value name="PanView.Tiles.FontHeight" type="dword" data="0000000e"/> | |
<value name="PanView.LoadPreviews" type="hex" data="03"/> | |
<value name="PanView.LoadFolders" type="hex" data="01"/> | |
<value name="PanView.LoadTimeout" type="dword" data="0000000f"/> | |
<value name="PanView.MaxZoom" type="dword" data="00000258"/> | |
<value name="PanView.UsePicView2" type="hex" data="01"/> | |
<value name="PanView.RestoreOnStartup" type="hex" data="00"/> | |
<value name="Update.VerLocation" type="string" data=""/> | |
<value name="Update.CheckOnStartup" type="hex" data="01"/> | |
<value name="Update.CheckHourly" type="hex" data="00"/> | |
<value name="Update.ConfirmDownload" type="hex" data="00"/> | |
<value name="Update.UseBuilds" type="hex" data="01"/> | |
<value name="Update.UseProxy" type="hex" data="00"/> | |
<value name="Update.Proxy" type="string" data=""/> | |
<value name="Update.ProxyUser" type="string" data=""/> | |
<value name="Update.ProxyPassword" type="string" data=""/> | |
<value name="Update.ExeCmdLine" type="string" data=""/> | |
<value name="Update.ArcCmdLine" type="string" data=""/> | |
<value name="Update.DownloadPath" type="string" data="%TEMP%\ConEmu"/> | |
<value name="Update.LeavePackages" type="hex" data="00"/> | |
<value name="Update.PostUpdateCmd" type="string" data="echo Last successful update>ConEmuUpdate.info && date /t>>ConEmuUpdate.info && time /t>>ConEmuUpdate.info"/> | |
<value name="Multi.Modifier" type="dword" data="00000011"/> | |
<value name="Multi.ArrowsModifier" type="dword" data="0000005b"/> | |
<value name="KeyMacroVersion" type="hex" data="02"/> | |
<value name="MinimizeRestore" type="dword" data="000011c0"/> | |
<value name="MinimizeRestore2" type="dword" data="00000000"/> | |
<value name="GlobalRestore" type="dword" data="00000000"/> | |
<value name="ForcedFullScreen" type="dword" data="12115b0d"/> | |
<value name="SwitchGuiFocus" type="dword" data="00000000"/> | |
<value name="SetFocusGui" type="dword" data="00000000"/> | |
<value name="SetFocusChild" type="dword" data="00000000"/> | |
<value name="ChildSystemMenu" type="dword" data="ffffffff"/> | |
<value name="Multi.NewConsole" type="dword" data="80808000"/> | |
<value name="Multi.NewConsoleShift" type="dword" data="00001154"/> | |
<value name="Multi.NewConsolePopup" type="dword" data="80808000"/> | |
<value name="Multi.NewWindow" type="dword" data="00000000"/> | |
<value name="Multi.NewSplitV" type="dword" data="00001000"/> | |
<value name="Multi.NewSplitH" type="dword" data="80808000"/> | |
<value name="Multi.NewAttach" type="dword" data="00005b00"/> | |
<value name="Multi.Next" type="dword" data="80808000"/> | |
<value name="Multi.NextShift" type="dword" data="80808000"/> | |
<value name="Multi.Recreate" type="dword" data="00005b00"/> | |
<value name="Multi.AltCon" type="dword" data="80808000"/> | |
<value name="Multi.Scroll" type="dword" data="00005b00"/> | |
<value name="Multi.Close" type="dword" data="00001157"/> | |
<value name="CloseTabKey" type="dword" data="00125b00"/> | |
<value name="CloseGroupKey" type="dword" data="00000000"/> | |
<value name="TerminateProcessKey" type="dword" data="80808000"/> | |
<value name="DuplicateRootKey" type="dword" data="00000000"/> | |
<value name="CloseConEmuKey" type="dword" data="00001273"/> | |
<value name="Multi.Rename" type="dword" data="80808000"/> | |
<value name="Multi.MoveLeft" type="dword" data="00125b25"/> | |
<value name="Multi.MoveRight" type="dword" data="00125b27"/> | |
<value name="Multi.CmdKey" type="dword" data="80808000"/> | |
<value name="CTS.VkBlockStart" type="dword" data="00000000"/> | |
<value name="CTS.VkTextStart" type="dword" data="00000000"/> | |
<value name="CTS.VkCopyAll" type="dword" data="00000000"/> | |
<value name="Multi.ShowTabsList" type="dword" data="00000000"/> | |
<value name="Multi.ShowTabsList2" type="dword" data="80808000"/> | |
<value name="ClipboardVkAllLines" type="dword" data="0000102d"/> | |
<value name="ClipboardVkFirstLine" type="dword" data="00001156"/> | |
<value name="DeleteWordToLeft" type="dword" data="00001108"/> | |
<value name="FindTextKey" type="dword" data="00005d46"/> | |
<value name="ScreenshotKey" type="dword" data="80808000"/> | |
<value name="ScreenshotFullKey" type="dword" data="80808000"/> | |
<value name="ShowStatusBarKey" type="dword" data="80808000"/> | |
<value name="ShowTabBarKey" type="dword" data="80808000"/> | |
<value name="ShowCaptionKey" type="dword" data="80808000"/> | |
<value name="AlwaysOnTopKey" type="dword" data="00000000"/> | |
<value name="Key.TabMenu" type="dword" data="80808000"/> | |
<value name="Key.TabMenu2" type="dword" data="80808000"/> | |
<value name="Key.TabPane1" type="dword" data="80808000"/> | |
<value name="Key.TabPane2" type="dword" data="80808000"/> | |
<value name="Key.Maximize" type="dword" data="80808000"/> | |
<value name="Key.FullScreen" type="dword" data="0000120d"/> | |
<value name="Key.SysMenu" type="dword" data="80808000"/> | |
<value name="Key.SysMenu2" type="dword" data="00001102"/> | |
<value name="Key.BufUp" type="dword" data="00001126"/> | |
<value name="Key.BufDn" type="dword" data="00001128"/> | |
<value name="Key.BufPgUp" type="dword" data="00001121"/> | |
<value name="Key.BufPgDn" type="dword" data="00001122"/> | |
<value name="Key.PicViewSlide" type="dword" data="80808000"/> | |
<value name="Key.PicViewSlower" type="dword" data="80808000"/> | |
<value name="Key.PicViewFaster" type="dword" data="80808000"/> | |
<value name="FontLargerKey" type="dword" data="80808000"/> | |
<value name="FontSmallerKey" type="dword" data="80808000"/> | |
<value name="PasteFileKey" type="dword" data="00101146"/> | |
<value name="PastePathKey" type="dword" data="00101144"/> | |
<value name="PasteCygwinKey" type="dword" data="00005d2d"/> | |
<value name="Key.JumpPrevMonitor" type="dword" data="80808000"/> | |
<value name="Key.JumpNextMonitor" type="dword" data="80808000"/> | |
<value name="Key.TileToLeft" type="dword" data="80808000"/> | |
<value name="Key.TileToRIght" type="dword" data="80808000"/> | |
<value name="KeyMacro01" type="dword" data="0012a031"/> | |
<value name="KeyMacro01.Text" type="string" data="Task("cmd")"/> | |
<value name="KeyMacro02" type="dword" data="0012a032"/> | |
<value name="KeyMacro02.Text" type="string" data="Task("PowerShell")"/> | |
<value name="KeyMacro03" type="dword" data="000011d0"/> | |
<value name="KeyMacro03.Text" type="string" data="FontSetSize(1,2)"/> | |
<value name="KeyMacro04" type="dword" data="000011d1"/> | |
<value name="KeyMacro04.Text" type="string" data="FontSetSize(1,-2)"/> | |
<value name="KeyMacro05" type="dword" data="00000000"/> | |
<value name="KeyMacro05.Text" type="string" data=""/> | |
<value name="KeyMacro06" type="dword" data="00000000"/> | |
<value name="KeyMacro06.Text" type="string" data=""/> | |
<value name="KeyMacro07" type="dword" data="00000000"/> | |
<value name="KeyMacro07.Text" type="string" data=""/> | |
<value name="KeyMacro08" type="dword" data="00000000"/> | |
<value name="KeyMacro08.Text" type="string" data=""/> | |
<value name="KeyMacro09" type="dword" data="00000000"/> | |
<value name="KeyMacro09.Text" type="string" data=""/> | |
<value name="KeyMacro10" type="dword" data="00000000"/> | |
<value name="KeyMacro10.Text" type="string" data=""/> | |
<value name="KeyMacro11" type="dword" data="00000000"/> | |
<value name="KeyMacro11.Text" type="string" data=""/> | |
<value name="KeyMacro12" type="dword" data="00000000"/> | |
<value name="KeyMacro12.Text" type="string" data=""/> | |
<value name="KeyMacro13" type="dword" data="00000000"/> | |
<value name="KeyMacro13.Text" type="string" data=""/> | |
<value name="KeyMacro14" type="dword" data="00000000"/> | |
<value name="KeyMacro14.Text" type="string" data=""/> | |
<value name="KeyMacro15" type="dword" data="00000000"/> | |
<value name="KeyMacro15.Text" type="string" data=""/> | |
<value name="KeyMacro16" type="dword" data="00000000"/> | |
<value name="KeyMacro16.Text" type="string" data=""/> | |
<value name="KeyMacro17" type="dword" data="00000000"/> | |
<value name="KeyMacro17.Text" type="string" data=""/> | |
<value name="KeyMacro18" type="dword" data="00000000"/> | |
<value name="KeyMacro18.Text" type="string" data=""/> | |
<value name="KeyMacro19" type="dword" data="00000000"/> | |
<value name="KeyMacro19.Text" type="string" data=""/> | |
<value name="KeyMacro20" type="dword" data="00000000"/> | |
<value name="KeyMacro20.Text" type="string" data=""/> | |
<value name="KeyMacro21" type="dword" data="00000000"/> | |
<value name="KeyMacro21.Text" type="string" data=""/> | |
<value name="KeyMacro22" type="dword" data="00000000"/> | |
<value name="KeyMacro22.Text" type="string" data=""/> | |
<value name="KeyMacro23" type="dword" data="00000000"/> | |
<value name="KeyMacro23.Text" type="string" data=""/> | |
<value name="KeyMacro24" type="dword" data="00000000"/> | |
<value name="KeyMacro24.Text" type="string" data=""/> | |
<value name="KeyMacro25" type="dword" data="00000000"/> | |
<value name="KeyMacro25.Text" type="string" data=""/> | |
<value name="KeyMacro26" type="dword" data="00000000"/> | |
<value name="KeyMacro26.Text" type="string" data=""/> | |
<value name="KeyMacro27" type="dword" data="00000000"/> | |
<value name="KeyMacro27.Text" type="string" data=""/> | |
<value name="KeyMacro28" type="dword" data="00000000"/> | |
<value name="KeyMacro28.Text" type="string" data=""/> | |
<value name="KeyMacro29" type="dword" data="00000000"/> | |
<value name="KeyMacro29.Text" type="string" data=""/> | |
<value name="KeyMacro30" type="dword" data="00000000"/> | |
<value name="KeyMacro30.Text" type="string" data=""/> | |
<value name="KeyMacro31" type="dword" data="00000000"/> | |
<value name="KeyMacro31.Text" type="string" data=""/> | |
<value name="KeyMacro32" type="dword" data="00000000"/> | |
<value name="KeyMacro32.Text" type="string" data=""/> | |
<value name="CTS.VkBlock" type="hex" data="a4"/> | |
<value name="CTS.VkText" type="hex" data="a0"/> | |
<value name="CTS.VkAct" type="hex" data="00"/> | |
<value name="CTS.VkPrompt" type="hex" data="00"/> | |
<value name="FarGotoEditorVk" type="hex" data="a2"/> | |
<value name="DndLKey" type="hex" data="00"/> | |
<value name="DndRKey" type="hex" data="a2"/> | |
<value name="WndDragKey" type="dword" data="00121101"/> | |
<key name="Tasks" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="Count" type="dword" data="00000005"/> | |
<key name="Task1" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="Name" type="string" data="{VsDevCmd}"/> | |
<value name="GuiArgs" type="string" data=" /icon "%CMDER_ROOT%\cmder.exe""/> | |
<value name="Cmd1" type="string" data="* > %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" & "%ConEmuDir%\..\init.bat"" -new_console:d:c:\Source"/> | |
<value name="Active" type="dword" data="00000000"/> | |
<value name="Count" type="dword" data="00000001"/> | |
<value name="Hotkey" type="dword" data="00000000"/> | |
</key> | |
<key name="Task2" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="Name" type="string" data="{cmd}"/> | |
<value name="GuiArgs" type="string" data=" /icon "%CMDER_ROOT%\cmder.exe""/> | |
<value name="Cmd1" type="string" data="cmd /k "%ConEmuDir%\..\init.bat" -new_console:d:c:\source"/> | |
<value name="Active" type="dword" data="00000000"/> | |
<value name="Count" type="dword" data="00000001"/> | |
<value name="Hotkey" type="dword" data="00000000"/> | |
</key> | |
<key name="Task3" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="Name" type="string" data="{PowerShell}"/> | |
<value name="Hotkey" type="dword" data="00000000"/> | |
<value name="GuiArgs" type="string" data="/dir "%userprofile%""/> | |
<value name="Cmd1" type="string" data="powershell"/> | |
<value name="Active" type="dword" data="00000000"/> | |
<value name="Count" type="dword" data="00000001"/> | |
</key> | |
<key name="Task4" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="Name" type="string" data="{Cygwin}"/> | |
<value name="Hotkey" type="dword" data="00000000"/> | |
<value name="GuiArgs" type="string" data="/icon C:\bin\cygwin\Cygwin-Terminal.ico"/> | |
<value name="Cmd1" type="string" data="C:\bin\cygwin\bin\bash -c "/bin/xhere /bin/bash.exe '%V'""/> | |
<value name="Active" type="dword" data="00000000"/> | |
<value name="Count" type="dword" data="00000001"/> | |
</key> | |
<key name="Task5" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="Name" type="string" data="{VanillaCmd}"/> | |
<value name="Hotkey" type="dword" data="00000000"/> | |
<value name="GuiArgs" type="string" data=" /icon "%CMDER_ROOT%\cmder.exe""/> | |
<value name="Active" type="dword" data="00000000"/> | |
<value name="Count" type="dword" data="00000001"/> | |
<value name="Cmd1" type="string" data="cmd"/> | |
</key> | |
</key> | |
<key name="Apps" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="Count" type="dword" data="00000000"/> | |
</key> | |
<key name="Colors" modified="2015-12-11 09:29:31" build="140707"> | |
<key name="Palette1" modified="2015-12-11 09:29:31" build="140707"> | |
<value name="Name" type="string" data="Monokai"/> | |
<value name="ExtendColors" type="hex" data="00"/> | |
<value name="ExtendColorIdx" type="hex" data="0e"/> | |
<value name="TextColorIdx" type="hex" data="10"/> | |
<value name="BackColorIdx" type="hex" data="10"/> | |
<value name="PopTextColorIdx" type="hex" data="10"/> | |
<value name="PopBackColorIdx" type="hex" data="10"/> | |
<value name="ColorTable00" type="dword" data="00222827"/> | |
<value name="ColorTable01" type="dword" data="009e5401"/> | |
<value name="ColorTable02" type="dword" data="0004aa74"/> | |
<value name="ColorTable03" type="dword" data="00a6831a"/> | |
<value name="ColorTable04" type="dword" data="003403a7"/> | |
<value name="ColorTable05" type="dword" data="009c5689"/> | |
<value name="ColorTable06" type="dword" data="0049b6b6"/> | |
<value name="ColorTable07" type="dword" data="00cacaca"/> | |
<value name="ColorTable08" type="dword" data="007c7c7c"/> | |
<value name="ColorTable09" type="dword" data="00f58303"/> | |
<value name="ColorTable10" type="dword" data="0006d08d"/> | |
<value name="ColorTable11" type="dword" data="00e5c258"/> | |
<value name="ColorTable12" type="dword" data="004b04f3"/> | |
<value name="ColorTable13" type="dword" data="00b87da8"/> | |
<value name="ColorTable14" type="dword" data="0081cccc"/> | |
<value name="ColorTable15" type="dword" data="00ffffff"/> | |
<value name="ColorTable16" type="dword" data="00000000"/> | |
<value name="ColorTable17" type="dword" data="00800000"/> | |
<value name="ColorTable18" type="dword" data="00008000"/> | |
<value name="ColorTable19" type="dword" data="00808000"/> | |
<value name="ColorTable20" type="dword" data="00000080"/> | |
<value name="ColorTable21" type="dword" data="00800080"/> | |
<value name="ColorTable22" type="dword" data="00008080"/> | |
<value name="ColorTable23" type="dword" data="00c0c0c0"/> | |
<value name="ColorTable24" type="dword" data="00808080"/> | |
<value name="ColorTable25" type="dword" data="00ff0000"/> | |
<value name="ColorTable26" type="dword" data="0000ff00"/> | |
<value name="ColorTable27" type="dword" data="00ffff00"/> | |
<value name="ColorTable28" type="dword" data="000000ff"/> | |
<value name="ColorTable29" type="dword" data="00ff00ff"/> | |
<value name="ColorTable30" type="dword" data="0000ffff"/> | |
<value name="ColorTable31" type="dword" data="00ffffff"/> | |
</key> | |
<value name="Count" type="dword" data="00000001"/> | |
</key> | |
<value name="OneTabPerGroup" type="hex" data="00"/> | |
<value name="ActivateSplitMouseOver" type="hex" data="01"/> | |
<value name="TabBtnDblClick" type="dword" data="00000000"/> | |
<value name="ConsoleExceptionHandler" type="hex" data="00"/> | |
<value name="SaveCmdHistory" type="hex" data="00"/> | |
<value name="CTS.IBeam" type="hex" data="01"/> | |
<value name="Multi.SplitSizeVU" type="dword" data="00105d26"/> | |
<value name="Multi.SplitSizeVD" type="dword" data="00105d28"/> | |
<value name="Multi.SplitSizeHL" type="dword" data="00105d25"/> | |
<value name="Multi.SplitSizeHR" type="dword" data="00105d27"/> | |
<value name="Multi.SplitFocusU" type="dword" data="00005d26"/> | |
<value name="Multi.SplitFocusD" type="dword" data="00005d28"/> | |
<value name="Multi.SplitFocusL" type="dword" data="00005d25"/> | |
<value name="Multi.SplitFocusR" type="dword" data="00005d27"/> | |
<value name="CloseGroupPrcKey" type="dword" data="00000000"/> | |
<value name="SetDefaultTerminalStartupTSA" type="hex" data="01"/> | |
<value name="CTS.HtmlFormat" type="hex" data="00"/> | |
<value name="TabIcons" type="hex" data="01"/> | |
<value name="Multi.NewConsolePopup2" type="dword" data="00000000"/> | |
<value name="CloseAllConKey" type="dword" data="00000000"/> | |
<value name="CloseExceptConKey" type="dword" data="00000000"/> | |
<value name="CTS.VkCopyFmt0" type="dword" data="00001143"/> | |
<value name="CTS.VkCopyFmt1" type="dword" data="00101143"/> | |
<value name="CTS.VkCopyFmt2" type="dword" data="00000000"/> | |
<value name="ProcessNewConArg" type="hex" data="01"/> | |
<value name="HighlightMouseRow" type="hex" data="00"/> | |
<value name="HighlightMouseCol" type="hex" data="00"/> | |
<value name="HighlightMouseSwitch" type="dword" data="00005d4c"/> | |
<value name="TransparencyInc" type="dword" data="00000000"/> | |
<value name="TransparencyDec" type="dword" data="00000000"/> | |
<value name="Key.MaximizeWidth" type="dword" data="00000000"/> | |
<value name="Key.MaximizeHeight" type="dword" data="00000000"/> | |
<value name="DefaultTerminalAgressive" type="hex" data="01"/> | |
<value name="DefaultTerminalNewWindow" type="hex" data="00"/> | |
<value name="AnsiLog" type="hex" data="00"/> | |
<value name="AnsiLogPath" type="string" data="%ConEmuDir%\Logs\"/> | |
<value name="Multi.DupConfirm" type="hex" data="00"/> | |
<value name="Multi.DetachConfirm" type="hex" data="01"/> | |
<value name="CTS.Intelligent" type="hex" data="01"/> | |
<value name="CTS.IntelligentExceptions" type="string" data="far|vim.exe"/> | |
<value name="StatusBar.Hide.Time" type="hex" data="01"/> | |
<value name="TaskbarProgress" type="hex" data="01"/> | |
<value name="RetardInactivePanes" type="hex" data="00"/> | |
</key> | |
</key> | |
</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- preamble: common routines | |
local function basename(path) | |
local prefix = path | |
local i = path:find("[\\/:][^\\/:]*$") | |
if i then | |
prefix = path:sub(i + 1) | |
end | |
return prefix | |
end | |
local function pathname(path) | |
local prefix = "" | |
local i = path:find("[\\/:][^\\/:]*$") | |
if i then | |
prefix = path:sub(1, i-1) | |
end | |
return prefix | |
end | |
local function files(word) | |
local prefix = pathname(word) | |
local matches = {} | |
local mask = word.."*" | |
-- Find matches. | |
for _, dir in ipairs(clink.find_files(mask, true)) do | |
local file = prefix..dir | |
if clink.is_match(word, file) then | |
table.insert(matches, prefix..dir) | |
end | |
end | |
-- If there was no matches but text is a dir then use it as the single match. | |
-- Otherwise tell readline that matches are files and it will do magic. | |
if #matches == 0 then | |
if clink.is_dir(rl_state.word) then | |
table.insert(matches, rl_state.text) | |
end | |
else | |
clink.matches_are_files() | |
end | |
return matches | |
end | |
local function isRoot(dir) | |
local dir = dir or clink.get_cwd() | |
end | |
-- Resolves closest .git directory location. | |
-- Navigates subsequently up one level and tries to find .git directory | |
-- Returns path to .git directory or nil if such dir not found | |
local function get_git_dir(path) | |
-- Navigates up one level | |
local function up_one_level(path) | |
if path == nil then path = '.' end | |
if path == '.' then path = clink.get_cwd() end | |
return pathname(path) | |
end | |
-- Checks if provided directory contains git directory | |
local function has_git_dir(path) | |
if path == nil then path = '.' end | |
local found_dirs = clink.find_dirs(path..'/.git') | |
if #found_dirs > 0 then return true end | |
return false | |
end | |
-- Set default path to current directory | |
if path == nil then path = '.' end | |
-- If we're already have .git directory here, then return current path | |
if has_git_dir(path) then | |
return path..'/.git' | |
else | |
-- Otherwise go up one level and make a recursive call | |
local parent_path = up_one_level(path) | |
if parent_path == path then | |
return nil | |
else | |
return get_git_dir(parent_path) | |
end | |
end | |
end | |
-- end preamble | |
local function branches(token) | |
local res = {} | |
-- Try to resolve .git directory location | |
local git_dir = get_git_dir() | |
if git_dir == nil then return res end | |
-- If we're found it, then scan it for branches available | |
local branches = clink.find_files(git_dir .. "/refs/heads/*") | |
for _,branch in ipairs(branches) do | |
local start = branch:find(token, 1, true) | |
if start and start == 1 then | |
table.insert(res, branch) | |
end | |
end | |
return res | |
end | |
local function remotes(token) | |
local res = {} | |
-- Try to resolve .git directory location | |
local git_dir = get_git_dir() | |
if git_dir == nil then return res end | |
-- If we're found it, then scan it for branches available | |
local remotes = clink.find_dirs(git_dir.."/refs/remotes/*") | |
for _,remote in ipairs(remotes) do | |
local start = remote:find(token, 1, true) | |
if start and start == 1 then | |
table.insert(res, remote) | |
end | |
end | |
return res | |
end | |
local function checkout_spec_generator(token) | |
local res = {} | |
local res_filter = {} | |
for _,branch in ipairs(branches(token)) do | |
table.insert(res, branch) | |
table.insert(res_filter, '*' .. branch) | |
end | |
for _,file in ipairs(files(token)) do | |
table.insert(res, file) | |
-- TODO: lines, inserted here contains all path, not only last segmentP | |
local prefix = basename(file) | |
if clink.is_dir(file) then | |
prefix = prefix..'\\' | |
end | |
table.insert(res_filter, prefix) | |
end | |
clink.match_display_filter = function (matches) | |
return res_filter | |
end | |
return res | |
end | |
local parser = clink.arg.new_parser | |
local git_parser = parser( | |
{ | |
"add" .. parser({files}, | |
"-n", "--dry-run", | |
"-v", "--verbose", | |
"-f", "--force", | |
"-i", "--interactive", | |
"-p", "--patch", | |
"-e", "--edit", | |
"-u", "--update", | |
"-A", "--all", | |
"--no-all", | |
"--ignore-removal", | |
"--no-ignore-removal", | |
"-N", "--intent-to-add", | |
"--refresh", | |
"--ignore-errors", | |
"--ignore-missing" | |
), | |
"add--interactive", | |
"am", | |
"annotate" .. parser({files}, | |
"-b", | |
"--root", | |
"--show-stats", | |
"-L", | |
"-l", | |
"-t", | |
"-S", | |
"--reverse", | |
"-p", | |
"--porcelain", | |
"--line-porcelain", | |
"--incremental", | |
"--encoding=", | |
"--contents", | |
"--date", | |
"-M", | |
"-C", | |
"-h" | |
), | |
"apply" .. parser( | |
"--stat", | |
"--numstat", | |
"--summary", | |
"--check", | |
"--index", | |
"--cached", | |
"-3", "--3way", | |
"--build-fake-ancestor=", | |
"-R", "--reverse", | |
"--reject", | |
"-z", | |
"-p", | |
"-C", | |
"--unidiff-zero", | |
"--apply", | |
"--no-add", | |
"--allow-binary-replacement", "--binary", | |
"--exclude=", | |
"--include=", | |
"--ignore-space-change", "--ignore-whitespace", | |
"--whitespace=", | |
"--inaccurate-eof", | |
"-v", "--verbose", | |
"--recount", | |
"--directory=" | |
), | |
"archive", | |
"bisect", | |
"bisect--helper", | |
"blame", | |
"branch" .. parser( | |
"-v", "--verbose", | |
"-q", "--quiet", | |
"-t", "--track", | |
"--set-upstream", | |
"-u", "--set-upstream-to", | |
"--unset-upstream", | |
"--color", | |
"-r", "--remotes", | |
"--contains" , | |
"--abbrev", | |
"-a", "--all", | |
"-d" .. parser({branches}), | |
"--delete" .. parser({branches}), | |
"-D" .. parser({branches}), | |
"-m", "--move", | |
"-M", | |
"--list", | |
"-l", "--create-reflog", | |
"--edit-description", | |
"-f", "--force", | |
"--no-merged", | |
"--merged", | |
"--column" | |
), | |
"bundle", | |
"cat-file", | |
"check-attr", | |
"check-ignore", | |
"check-mailmap", | |
"check-ref-format", | |
"checkout" .. parser({checkout_spec_generator}, | |
"-q", "--quiet", | |
"-b", | |
"-B", | |
"-l", | |
"--detach", | |
"-t", "--track", | |
"--orphan", | |
"-2", "--ours", | |
"-3", "--theirs", | |
"-f", "--force", | |
"-m", "--merge", | |
"--overwrite-ignore", | |
"--conflict", | |
"-p", "--patch", | |
"--ignore-skip-worktree-bits" | |
), | |
"checkout-index", | |
"cherry", | |
"cherry-pick", | |
"citool", | |
"clean", | |
"clone", | |
"column", | |
"commit" .. parser( | |
"-a", "--all", | |
"-p", "--patch", | |
"-C", "--reuse-message=", | |
"-c", "--reedit-message=", | |
"--fixup=", | |
"--squash=", | |
"--reset-author", | |
"--short", | |
"--branch", | |
"--porcelain", | |
"--long", | |
"-z", | |
"--null", | |
"-F", "--file=", | |
"--author=", | |
"--date=", | |
"-m", "--message=", | |
"-t", "--template=", | |
"-s", "--signoff", | |
"-n", "--no-verify", | |
"--allow-empty", | |
"--allow-empty-message", | |
"--cleanup", -- .. parser({"strip", "whitespace", "verbatim", "default"}), | |
"-e", "--edit", | |
"--no-edit", | |
"--amend", | |
"--no-post-rewrite", | |
"-i", "--include", | |
"-o", "--only", | |
"-u", "--untracked-files", "--untracked-files=", -- .. parser({"no", "normal", "all"}), | |
"-v", "--verbose", | |
"-q", "--quiet", | |
"--dry-run", | |
"--status", | |
"--no-status", | |
"-S", "--gpg-sign", "--gpg-sign=", | |
"--" | |
), | |
"commit-tree", | |
"config", | |
"count-objects", | |
"credential", | |
"credential-store", | |
"credential-wincred", | |
"daemon", | |
"describe", | |
"diff", | |
"diff-files", | |
"diff-index", | |
"diff-tree", | |
"difftool", | |
"difftool--helper", | |
"fast-export", | |
"fast-import", | |
"fetch" .. parser({remotes}), | |
"fetch-pack", | |
"filter-branch", | |
"fmt-merge-msg", | |
"for-each-ref", | |
"format-patch", | |
"fsck", | |
"fsck-objects", | |
"gc", | |
"get-tar-commit-id", | |
"grep", | |
"gui", | |
"gui--askpass", | |
"gui--askyesno", | |
"gui.tcl", | |
"hash-object", | |
"help", | |
"http-backend", | |
"http-fetch", | |
"http-push", | |
"imap-send", | |
"index-pack", | |
"init", | |
"init-db", | |
"log", | |
"lost-found", | |
"ls-files", | |
"ls-remote", | |
"ls-tree", | |
"mailinfo", | |
"mailsplit", | |
"merge", | |
"merge-base", | |
"merge-file", | |
"merge-index", | |
"merge-octopus", | |
"merge-one-file", | |
"merge-ours", | |
"merge-recursive", | |
"merge-resolve", | |
"merge-subtree", | |
"merge-tree", | |
"mergetool", | |
"mergetool--lib", | |
"mktag", | |
"mktree", | |
"mv", | |
"name-rev", | |
"notes", | |
"p4", | |
"pack-objects", | |
"pack-redundant", | |
"pack-refs", | |
"parse-remote", | |
"patch-id", | |
"peek-remote", | |
"prune", | |
"prune-packed", | |
"pull" .. parser( | |
{remotes}, {branches}, | |
"-q", "--quiet", | |
"-v", "--verbose", | |
"--recurse-submodules", --[no-]recurse-submodules[=yes|on-demand|no] | |
"--no-recurse-submodules", | |
"--commit", "--no-commit", | |
"-e", "--edit", "--no-edit", | |
"--ff", "--no-ff", "--ff-only", | |
"--log", "--no-log", | |
"--stat", "-n", "--no-stat", | |
"--squash", "--no-squash", | |
"-s", "--strategy=", | |
"-X", "--strategy-option", | |
"--verify-signatures", "--no-verify-signatures", | |
"--summary", "--no-summary", | |
"-r", "--rebase", "--no-rebase", | |
"--all", | |
"-a", "--append", | |
"--depth", "--unshallow", "--update-shallow", | |
"-f", "--force", | |
"-k", "--keep", | |
"--no-tags", | |
"-u", "--update-head-ok", | |
"--upload-pack", | |
"--progress" | |
), | |
"push" .. parser( | |
{remotes}, | |
{branches}, | |
"-v", "--verbose", | |
"-q", "--quiet", | |
"--repo", | |
"--all", | |
"--mirror", | |
"--delete", | |
"--tags", | |
"-n", "--dry-run", | |
"--porcelain", | |
"-f", "--force", | |
"--force-with-lease", | |
"--recurse-submodules", | |
"--thin", | |
"--receive-pack", | |
"--exec", | |
"-u", "--set-upstream", | |
"--progress", | |
"--prune", | |
"--no-verify", | |
"--follow-tags" | |
), | |
"quiltimport", | |
"read-tree", | |
"rebase" .. parser( | |
"-i", "--interactive", | |
"--onto" .. parser({branches}) | |
), | |
"rebase--am", | |
"rebase--interactive", | |
"rebase--merge", | |
"receive-pack", | |
"reflog", | |
"remote", | |
"remote-ext", | |
"remote-fd", | |
"remote-ftp", | |
"remote-ftps", | |
"remote-hg", | |
"remote-http", | |
"remote-https", | |
"remote-testgit", | |
"remote-testpy", | |
"remote-testsvn", | |
"repack", | |
"replace", | |
"repo-config", | |
"request-pull", | |
"rerere", | |
"reset", | |
"rev-list", | |
"rev-parse", | |
"revert", | |
"rm", | |
"send-email", | |
"send-pack", | |
"sh-i18n", | |
"sh-i18n--envsubst", | |
"sh-setup", | |
"shortlog", | |
"show", | |
"show-branch", | |
"show-index", | |
"show-ref", | |
"stage", | |
"stash", | |
"status", | |
"stripspace", | |
"submodule", | |
"subtree", | |
"svn", | |
"symbolic-ref", | |
"tag", | |
"tar-tree", | |
"unpack-file", | |
"unpack-objects", | |
"update-index", | |
"update-ref", | |
"update-server-info", | |
"upload-archive", | |
"upload-pack", | |
"var", | |
"verify-pack", | |
"verify-tag", | |
"web--browse", | |
"whatchanged", | |
"write-tree", | |
}, | |
"--version", | |
"--help", | |
"-c", | |
"--exec-path", | |
"--html-path", | |
"--man-path", | |
"--info-path", | |
"-p", "--paginate", "--no-pager", | |
"--no-replace-objects", | |
"--bare", | |
"--git-dir=", | |
"--work-tree=", | |
"--namespace=" | |
) | |
clink.arg.register_parser("git", git_parser) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function lambda_prompt_filter() | |
clink.prompt.value = string.gsub(clink.prompt.value, "{lamb}", "λ") | |
end | |
clink.prompt.register_filter(lambda_prompt_filter, 40) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
-- This file is intended to be used with cmder | |
-- http://bliker.github.io/cmder/ | |
-- | |
-- Replace your existing C:\bin\cmder\config\git.lua with this file | |
-- This will append the branch status to your prompt, e.g. [ahead 1, behind 2] | |
-- It basically takes the output of git status -sb and appends it (with coloring) to the cmder prompt (before the lambda) | |
--- | |
--- | |
-- Colors for git status | |
--- | |
default = "\x1b[1;32;40m"; | |
green = "\x1b[0;32;40m"; | |
white = "\x1b[1;37;40m"; | |
red = "\x1b[1;31;40m"; | |
--- | |
-- Find out current branch | |
-- @return {false|git branch name} | |
--- | |
function get_branch_name() | |
for line in io.popen("git branch 2>nul"):lines() do | |
local m = line:match("%* (.+)$") | |
if m then | |
return m | |
end | |
end | |
return false | |
end | |
--- | |
-- Get the remote state for the current branch | |
-- @return {string} | |
--- | |
function get_remote_state() | |
local branch_status = io.popen("git status -sb 2>nul"):read("*l") | |
local ahead_num = branch_status:match(".*%[.*ahead (%d+).*%]") | |
local behind_num = branch_status:match(".*%[.*behind (%d+).*%]") | |
local remote_state = { } | |
if ahead_num or behind_num then | |
table.insert(remote_state, white.." [") | |
if ahead_num then | |
table.insert(remote_state, "ahead "..green..ahead_num..white) | |
if behind_num then | |
table.insert(remote_state, ", ") | |
end | |
end | |
if behind_num then | |
table.insert(remote_state, "behind "..red..behind_num..white) | |
end | |
table.insert(remote_state, "]") | |
end | |
return table.concat(remote_state) | |
end | |
--- | |
-- Get the color to use for the batch prompt | |
-- @return {string} | |
--- | |
function get_branch_color() | |
local is_dirty = os.execute("git diff --quiet --ignore-submodules HEAD") | |
if is_dirty then | |
return white | |
else | |
return red | |
end | |
end | |
--- | |
-- Filter function to register with clink | |
--- | |
function git_prompt_filter() | |
local branch = get_branch_name() | |
if branch then | |
local branch_color = get_branch_color() | |
local remote_state = get_remote_state() | |
clink.prompt.value = string.gsub(clink.prompt.value, "{git}", branch_color.."("..branch..")"..remote_state..default) | |
return true | |
end | |
-- No git present or not in git file | |
clink.prompt.value = string.gsub(clink.prompt.value, "{git}", "") | |
return false | |
end | |
clink.prompt.register_filter(git_prompt_filter, 50) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# name: Ctrl-D exits | |
# type: bool | |
# Ctrl-D exits cmd.exe when it is pressed on an empty line. | |
ctrld_exits = 0 | |
# name: Esc clears line | |
# type: bool | |
# Clink clears the current line when Esc is pressed (unless Readline's Vi mode | |
# is enabled). | |
esc_clears_line = 1 | |
# name: Match display colour | |
# type: int | |
# Colour to use when displaying matches. A value less than 0 will be the | |
# opposite brightness of the default colour. | |
match_colour = -1 | |
# name: Executable match style | |
# type: enum | |
# Changes how Clink will match executables when there is no path separator on | |
# the line. 0 = PATH only, 1 = PATH and CWD, 2 = PATH, CWD, and directories. In | |
# all cases both executables and directories are matched when there is a path | |
# separator present. A value of -1 will disable executable matching completely. | |
exec_match_style = -1 | |
# name: Whitespace prefix matches files | |
# type: bool | |
# If the line begins with whitespace then Clink bypasses executable matching and | |
# will match all files and directories instead. | |
space_prefix_match_files = 1 | |
# name: Prompt colour | |
# type: int | |
# Surrounds the prompt in ANSI escape codes to set the prompt's colour. Disabled | |
# when the value is less than 0. | |
prompt_colour = -1 | |
# name: Auto-answer terminate prompt | |
# type: enum | |
# Automatically answers cmd.exe's 'Terminate batch job (Y/N)?' prompts. 0 = | |
# disabled, 1 = answer 'Y', 2 = answer 'N'. | |
terminate_autoanswer = 1 | |
# name: Persistent command history | |
# type: bool | |
# Enable or disable the saving and loading of command history between sessions. | |
persist_history = 1 | |
# name: Support Windows' Ctrl-Alt substitute | |
# type: bool | |
# Windows provides Ctrl-Alt as a substitute for AltGr, historically to support | |
# keyboards with no AltGr key. This may collide with some of Readline's | |
# bindings. | |
use_altgr_substitute = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Init Script for cmd.exe | |
:: Sets some nice defaults | |
:: Created as part of cmder project | |
:: Find root dir | |
@if not defined CMDER_ROOT ( | |
for /f %%i in ("%ConEmuDir%\..\..") do @set CMDER_ROOT=%%~fi | |
) | |
:: Change the prompt style | |
:: Mmm tasty lamb | |
@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40m{lamb}$S$E[0m | |
:: Pick right version of clink | |
@if "%PROCESSOR_ARCHITECTURE%"=="x86" ( | |
set architecture=86 | |
) else ( | |
set architecture=64 | |
) | |
:: Run clink | |
@"%CMDER_ROOT%\vendor\clink\clink_x%architecture%.exe" inject --quiet --profile "%CMDER_ROOT%\config" | |
:: Prepare for msysgit | |
:: I do not even know, copypasted from their .bat | |
@set PLINK_PROTOCOL=ssh | |
@if not defined TERM set TERM=cygwin | |
:: Enhance Path | |
:: @set git_install_root=%CMDER_ROOT%\vendor\msysgit | |
@set git_install_root=C:\Program Files\Git | |
@set PATH=%CMDER_ROOT%\bin;%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim74;%CMDER_ROOT%;%PATH% | |
:: Add aliases | |
@doskey /macrofile="%CMDER_ROOT%\config\aliases" | |
:: Set home path | |
@set HOMEDRIVE=%SYSTEMDRIVE% | |
@set HOMEPATH=\Users\%USERNAME% | |
@set HOME=%USERPROFILE% | |
@if defined CMDER_START ( | |
@cd /d "%CMDER_START%" | |
) else ( | |
@if "%CD%\" == "%CMDER_ROOT%" ( | |
@cd /d "%HOME%" | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@echo off
echo Backing up existing Cmder directory
cp -r %CMDER_ROOT% %CMDER_ROOT%_bak
echo Create C:\Source directory because my Cmder tasks use it as the starting directory
if not exist "c:\Source" ( mkdir c:\Source )
echo Installing v0.4.4 of Clink (because that's what version my Lua customizations support)
curl -LOk https://github.com/mridgers/clink/releases/download/0.4.4/clink_0.4.4.zip
7z x clink_0.4.4.zip
mv %CMDER_ROOT%\vendor\clink %CMDER_ROOT%\vendor\clink_0.4.2
mv clink_0.4.4 %CMDER_ROOT%\vendor\clink
echo Installing customizations from latest Gist
::curl -o cmder-customization.zip -sSLk https://gist.github.com/mikesigs/cb60735581113d61d684/archive/12ef9526cab66b30b7c180705d90f8208066fca2.zip
curl -o cmder-customization.zip -sSLk https://gist.github.com/mikesigs/cb60735581113d61d684/archive/920e56db1a6dd7a2a14ab498044d5eb132c44a9a.zip
7z e cmder-customization.zip -r bin -o%CMDER_ROOT%\bin -aoa
7z e cmder-customization.zip -r config -o%CMDER_ROOT%\config -aoa
7z e cmder-customization.zip -r vendor -o%CMDER_ROOT%\vendor -aoa
rm cmder-customization.zip