Remove obsolete stuffs

This commit is contained in:
leokhoa
2025-10-05 17:33:37 +02:00
parent 71b1fe4850
commit 1c759708e4
15680 changed files with 4890893 additions and 139873 deletions

View File

@@ -0,0 +1,8 @@
System colors (Standard console 16 colors):
 N  N  N  N  N  N  N  N  (colors 0..7 reverse underline)
 N  N  N  N  N  N  N  N  (colors 8..15 reverse italic)
 N  N  N  N  N  N  N  N  (colors 0..7)
 N  N  N  N  N  N  N  N  (colors 8..15)
 N  N  N  N  N  N  N  N  (colors 0..7 blink NYI)
 N  N  N  N  N  N  N  N  (colors 0..7 xterm)
 N  N  N  N  N  N  N  N  (colors 8..15 xterm)

View File

@@ -0,0 +1,92 @@
This file contains full map of standard ANSI colors
Read about enabling ANSI support in ConEmu
https://conemu.github.io/en/AnsiEscapeCodes.html
To view this file colored just "type" it in your cmd/tcc/powershell prompt
Example: type "C:\Program Files\ConEmu\ConEmu\Addons\AnsiColors16t.ans"
How to use ANSI in your scripts
cmd. Most tricky. You need to echo real \u001B character.
First, define "ESC" environment variable with this helper batch:
SetEscChar.cmd
Second, use it in your "echo" commands:
echo %ESC%[1;33;40m Yellow on black %ESC%[0m
PowerShell. If you need, PS can change output colors itself.
Define variable with "[char]0x001b" and use it in Write-Host:
$E=[char]0x001b; Write-Host "$E`[1;33;40m Yellow on black $E`[0m"
tcc, tcc/le. This command processor knows about special character ^E,
Moreover, it process ANSI internally (without ConEmu)! Just use it:
echo ^E[1;33;40m Yellow on black ^E[m
Bash. Unix ports known about ANSI and process codes internally!
Just use it:
echo -e "\e[1;33;40m Yellow on black \e[m"
 $E[30;40m   $E[90;40m   $E[30;100m   $E[90;100m   $E[30;100m   $E[90;100m 
 $E[31;40m   $E[91;40m   $E[31;100m   $E[91;100m   $E[31;100m   $E[91;100m 
 $E[32;40m   $E[92;40m   $E[32;100m   $E[92;100m   $E[32;100m   $E[92;100m 
 $E[33;40m   $E[93;40m   $E[33;100m   $E[93;100m   $E[33;100m   $E[93;100m 
 $E[34;40m   $E[94;40m   $E[34;100m   $E[94;100m   $E[34;100m   $E[94;100m 
 $E[35;40m   $E[95;40m   $E[35;100m   $E[95;100m   $E[35;100m   $E[95;100m 
 $E[36;40m   $E[96;40m   $E[36;100m   $E[96;100m   $E[36;100m   $E[96;100m 
 $E[37;40m   $E[97;40m   $E[37;100m   $E[97;100m   $E[37;100m   $E[97;100m 
 $E[30;41m   $E[90;41m   $E[30;101m   $E[90;101m   $E[30;101m   $E[90;101m 
 $E[31;41m   $E[91;41m   $E[31;101m   $E[91;101m   $E[31;101m   $E[91;101m 
 $E[32;41m   $E[92;41m   $E[32;101m   $E[92;101m   $E[32;101m   $E[92;101m 
 $E[33;41m   $E[93;41m   $E[33;101m   $E[93;101m   $E[33;101m   $E[93;101m 
 $E[34;41m   $E[94;41m   $E[34;101m   $E[94;101m   $E[34;101m   $E[94;101m 
 $E[35;41m   $E[95;41m   $E[35;101m   $E[95;101m   $E[35;101m   $E[95;101m 
 $E[36;41m   $E[96;41m   $E[36;101m   $E[96;101m   $E[36;101m   $E[96;101m 
 $E[37;41m   $E[97;41m   $E[37;101m   $E[97;101m   $E[37;101m   $E[97;101m 
 $E[30;42m   $E[90;42m   $E[30;102m   $E[90;102m   $E[30;102m   $E[90;102m 
 $E[31;42m   $E[91;42m   $E[31;102m   $E[91;102m   $E[31;102m   $E[91;102m 
 $E[32;42m   $E[92;42m   $E[32;102m   $E[92;102m   $E[32;102m   $E[92;102m 
 $E[33;42m   $E[93;42m   $E[33;102m   $E[93;102m   $E[33;102m   $E[93;102m 
 $E[34;42m   $E[94;42m   $E[34;102m   $E[94;102m   $E[34;102m   $E[94;102m 
 $E[35;42m   $E[95;42m   $E[35;102m   $E[95;102m   $E[35;102m   $E[95;102m 
 $E[36;42m   $E[96;42m   $E[36;102m   $E[96;102m   $E[36;102m   $E[96;102m 
 $E[37;42m   $E[97;42m   $E[37;102m   $E[97;102m   $E[37;102m   $E[97;102m 
 $E[30;43m   $E[90;43m   $E[30;103m   $E[90;103m   $E[30;103m   $E[90;103m 
 $E[31;43m   $E[91;43m   $E[31;103m   $E[91;103m   $E[31;103m   $E[91;103m 
 $E[32;43m   $E[92;43m   $E[32;103m   $E[92;103m   $E[32;103m   $E[92;103m 
 $E[33;43m   $E[93;43m   $E[33;103m   $E[93;103m   $E[33;103m   $E[93;103m 
 $E[34;43m   $E[94;43m   $E[34;103m   $E[94;103m   $E[34;103m   $E[94;103m 
 $E[35;43m   $E[95;43m   $E[35;103m   $E[95;103m   $E[35;103m   $E[95;103m 
 $E[36;43m   $E[96;43m   $E[36;103m   $E[96;103m   $E[36;103m   $E[96;103m 
 $E[37;43m   $E[97;43m   $E[37;103m   $E[97;103m   $E[37;103m   $E[97;103m 
 $E[30;44m   $E[90;44m   $E[30;104m   $E[90;104m   $E[30;104m   $E[90;104m 
 $E[31;44m   $E[91;44m   $E[31;104m   $E[91;104m   $E[31;104m   $E[91;104m 
 $E[32;44m   $E[92;44m   $E[32;104m   $E[92;104m   $E[32;104m   $E[92;104m 
 $E[33;44m   $E[93;44m   $E[33;104m   $E[93;104m   $E[33;104m   $E[93;104m 
 $E[34;44m   $E[94;44m   $E[34;104m   $E[94;104m   $E[34;104m   $E[94;104m 
 $E[35;44m   $E[95;44m   $E[35;104m   $E[95;104m   $E[35;104m   $E[95;104m 
 $E[36;44m   $E[96;44m   $E[36;104m   $E[96;104m   $E[36;104m   $E[96;104m 
 $E[37;44m   $E[97;44m   $E[37;104m   $E[97;104m   $E[37;104m   $E[97;104m 
 $E[30;45m   $E[90;45m   $E[30;105m   $E[90;105m   $E[30;105m   $E[90;105m 
 $E[31;45m   $E[91;45m   $E[31;105m   $E[91;105m   $E[31;105m   $E[91;105m 
 $E[32;45m   $E[92;45m   $E[32;105m   $E[92;105m   $E[32;105m   $E[92;105m 
 $E[33;45m   $E[93;45m   $E[33;105m   $E[93;105m   $E[33;105m   $E[93;105m 
 $E[34;45m   $E[94;45m   $E[34;105m   $E[94;105m   $E[34;105m   $E[94;105m 
 $E[35;45m   $E[95;45m   $E[35;105m   $E[95;105m   $E[35;105m   $E[95;105m 
 $E[36;45m   $E[96;45m   $E[36;105m   $E[96;105m   $E[36;105m   $E[96;105m 
 $E[37;45m   $E[97;45m   $E[37;105m   $E[97;105m   $E[37;105m   $E[97;105m 
 $E[30;46m   $E[90;46m   $E[30;106m   $E[90;106m   $E[30;106m   $E[90;106m 
 $E[31;46m   $E[91;46m   $E[31;106m   $E[91;106m   $E[31;106m   $E[91;106m 
 $E[32;46m   $E[92;46m   $E[32;106m   $E[92;106m   $E[32;106m   $E[92;106m 
 $E[33;46m   $E[93;46m   $E[33;106m   $E[93;106m   $E[33;106m   $E[93;106m 
 $E[34;46m   $E[94;46m   $E[34;106m   $E[94;106m   $E[34;106m   $E[94;106m 
 $E[35;46m   $E[95;46m   $E[35;106m   $E[95;106m   $E[35;106m   $E[95;106m 
 $E[36;46m   $E[96;46m   $E[36;106m   $E[96;106m   $E[36;106m   $E[96;106m 
 $E[37;46m   $E[97;46m   $E[37;106m   $E[97;106m   $E[37;106m   $E[97;106m 
 $E[30;47m   $E[90;47m   $E[30;107m   $E[90;107m   $E[30;107m   $E[90;107m 
 $E[31;47m   $E[91;47m   $E[31;107m   $E[91;107m   $E[31;107m   $E[91;107m 
 $E[32;47m   $E[92;47m   $E[32;107m   $E[92;107m   $E[32;107m   $E[92;107m 
 $E[33;47m   $E[93;47m   $E[33;107m   $E[93;107m   $E[33;107m   $E[93;107m 
 $E[34;47m   $E[94;47m   $E[34;107m   $E[94;107m   $E[34;107m   $E[94;107m 
 $E[35;47m   $E[95;47m   $E[35;107m   $E[95;107m   $E[35;107m   $E[95;107m 
 $E[36;47m   $E[96;47m   $E[36;107m   $E[96;107m   $E[36;107m   $E[96;107m 
 $E[37;47m   $E[97;47m   $E[37;107m   $E[97;107m   $E[37;107m   $E[97;107m 

View File

@@ -0,0 +1,44 @@
# In the current ConEmu version TrueColor is available
# only in the lower part of console buffer
$h = [Console]::WindowHeight
$w = [Console]::BufferWidth
$y = ([Console]::BufferHeight-$h)
# Clean console contents (this will clean TrueColor attributes)
Write-Host (([char]27)+"[32766S")
# Apply default powershell console attributes
cls
# Ensure that we are in the bottom of the buffer
try{
[Console]::SetWindowPosition(0,$y)
[Console]::SetCursorPosition(0,$y)
}catch{
Write-Host (([char]27)+"[32766H")
}
# Header
$title = " Printing 24bit gradient with ANSI sequences using powershell"
Write-Host (([char]27)+"[m"+$title)
# Run cycles. Use {ESC [ 48 ; 2 ; R ; G ; B m} to set background
# RGB color of the next printing character (space in this example)
$l = 0
$h -= 3
$w -= 2
while ($l -lt $h) {
$b = [int]($l*255/$h)
$c = 0
Write-Host -NoNewLine (([char]27)+"[m ")
while ($c -lt $w) {
$r = [int]($c*255/$w)
Write-Host -NoNewLine (([char]27)+"[48;2;"+$r+";255;"+$b+"m ")
$c++
}
Write-Host (([char]27)+"[m ")
$l++
}
# Footer
Write-Host " Gradient done"

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -0,0 +1,21 @@
You may use next commands in FAR2 macroses.
callplugin(0x43454D55,1) Show output of last console program in FAR editor
callplugin(0x43454D55,2) Show output of last console program in FAR viewer
callplugin(0x43454D55,3) Switch ConEmu tabs visibility
callplugin(0x43454D55,4) Switch next tab
callplugin(0x43454D55,5) Switch previous tab
callplugin(0x43454D55,6) Apply last tab switch. This must be called when
'Lazy tab switch' ConEmu option is turned on.
callplugin(0x43454D55,7) Attach to ConEmu FAR window, started w/o ConEmu.
-------------------------------------------------------
callplugin(0x43454D55,8) Start ConEmu debug log window

View File

@@ -0,0 +1,47 @@
@echo off
rem ************************************************************
rem If you don't know about Chocolatey (apt-get style manager)
rem read about it here: https://chocolatey.org/
rem If you are sure about installing it, execute the following
rem one-line command:
rem one-line command (select it with mouse and press RClick):
rem powershell.exe -NoProfile -InputFormat None -ExecutionPolicy
rem Bypass -Command "iex ((New-Object System.Net.WebClient).
rem DownloadString('https://chocolatey.org/install.ps1'))"
rem ^&^& SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
rem ************************************************************
setlocal
if "%ConEmuANSI%" == "ON" (
set green=
set red=
set gray=
set yellow=
set white=
) else (
set green=
set red=
set gray=
set white=
)
rem Do not print ending '**' because it's not so easy to pad it with spaces
echo %green%************************************************************%gray%
echo If you don't know about %yellow%Chocolatey %gray%(apt-get style manager)
echo %yellow%read about it%gray% here:%green% https://chocolatey.org/
if DEFINED ChocolateyInstall (
if EXIST "%ChocolateyInstall%\choco.exe" (
echo %yellow%Chocolatey is already installed on your PC:%gray%
echo %green% %ChocolateyInstall% %gray%
goto done
)
)
echo %gray%If you are sure about installing it, execute the following
echo %red%one-line command%gray% (%yellow%select it with mouse and press RClick%gray%):
echo %white%powershell.exe -NoProfile -InputFormat None -ExecutionPolicy
echo %white% Bypass -Command "iex ((New-Object System.Net.WebClient).
echo %white% DownloadString('https://chocolatey.org/install.ps1'))"
echo %white% ^&^& SET "PATH=%%PATH%%;%%ALLUSERSPROFILE%%\chocolatey\bin"
:done
echo %green%************************************************************%gray%
endlocal

View File

@@ -0,0 +1,36 @@
REGEDIT4
;; Replace example path to yours specific location
;; If you hold «Shift» while clicking «ConEmu inside»
;; Tab will be created «As administrator»
;;
;; Btw, not relate to ConEmu, but interesting.
;; Explorer has 'hidden' item "Open command window here" :)
;; To display it, hold Shift when activating menu.
;;
;; One more tip. To display ConEmu system menu - right click
;; on the leftmost part of ConEmu status bar.
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\ConEmu inside]
"Icon"="C:\\Program Files\\ConEmu\\ConEmu.exe,1"
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\ConEmu inside\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu.exe\" /inside /config shell /cmd powershell -cur_console:n"
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\ConEmu inside]
"Icon"="C:\\Program Files\\ConEmu\\ConEmu.exe,1"
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\ConEmu inside\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu.exe\" /inside /config shell /dir \"%1\" /cmd powershell -cur_console:n"
[HKEY_CURRENT_USER\Software\Classes\Drive\shell\ConEmu inside]
"Icon"="C:\\Program Files\\ConEmu\\ConEmu.exe,1"
[HKEY_CURRENT_USER\Software\Classes\Drive\shell\ConEmu inside\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu.exe\" /inside /config shell /dir \"%1\" /cmd powershell -cur_console:n"
[HKEY_CURRENT_USER\Software\Classes\*\shell\ConEmu inside]
"Icon"="C:\\Program Files\\ConEmu\\ConEmu.exe,1"
[HKEY_CURRENT_USER\Software\Classes\*\shell\ConEmu inside\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu.exe\" /inside /config shell /cmd powershell -cur_console:n"

View File

@@ -0,0 +1,6 @@
REGEDIT4
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\ConEmu inside]
[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\ConEmu inside]
[-HKEY_CURRENT_USER\Software\Classes\Drive\shell\ConEmu inside]
[-HKEY_CURRENT_USER\Software\Classes\*\shell\ConEmu inside]

View File

@@ -0,0 +1,11 @@
REGEDIT4
;; Q. В Windows Vista зависают другие консольные процессы.
;; A. "Виноват" процесс ConIme.exe. Вроде бы он служит для ввода иероглифов
;; (китай и т.п.). Зачем он нужен, если ввод теперь идет в графическом окне?
;; Нужно запретить его автозапуск или вообще переименовать этот файл, например
;; в 'ConIme.ex1' (видимо это возможно только в безопасном режиме).
;; Запретить автозапуск: Внесите в реестр и перезагрузитесь
[HKEY_CURRENT_USER\Console]
"LoadConIme"=dword:00000000

View File

@@ -0,0 +1,88 @@
;
; This file was adapted for ConEmu by Maximus5.
;
;
; "Far Here" PowerToy
;
; Thanks for great Far Manager! There is a little add-on for windows,
; Just install this .inf, right click on any dir, in explorer, and select
; 'Far Here'. To uninstall - Control Panel->Add Remove programs->Far Here
; power toy. All you need is change one line - FarHereLocation
; (last line in .inf) to point to far.exe. Works with Win 9x and NT.
;
; To install:
;
; Locate farhere.inf with explorer
; Right click and select "install"
; Please change the last line (FarHereLocation) to point to far.exe.
;
; Works well with Win 9x and NT. Right click on directory and
; select from menu 'Far Here'.
;
; Send comments to gincius@voras.ktu.lt
;
[version]
signature="$CHICAGO$"
[FarHereInstall]
CopyFiles = FarHere.Files.Inf
AddReg = FarHere.Reg
[DefaultInstall]
CopyFiles = FarHere.Files.Inf
AddReg = FarHere.Reg
[DefaultInstall.ntx86]
CopyFiles = FarHere.Files.Inf
AddReg = FarHere.Reg.NT
[DefaultUnInstall]
DelFiles = FarHere.Files.Inf
DelReg = FarHere.Remove.Reg
[DefaultUnInstall.ntx86]
DelFiles = FarHere.Files.Inf
DelReg = FarHere.Remove.Reg.NT
[SourceDisksNames]
55="Far Here","",1
[SourceDisksFiles]
FARHERE.INF=55
[DestinationDirs]
FarHere.Files.Inf = 17
[FarHere.Files.Inf]
FARHERE.INF
[FarHere.Reg]
HKLM,%UDHERE%
HKLM,%UDHERE%,DisplayName,,"%FarHereName%"
HKLM,%UDHERE%,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\FarHere.inf"
HKCR,Directory\Shell\FarHere,,,"%FarHereAccel%"
HKCR,Directory\Shell\FarHere\command,,,"%FarHereLocation% ""%1"""
HKCR,Drive\Shell\FarHere,,,"%FarHereAccel%"
HKCR,Drive\Shell\FarHere\command,,,"%FarHereLocation% ""%1"""
HKCR,*\Shell\FarHere,,,"%FarHereAccel%"
HKCR,*\Shell\FarHere\command,,,"%FarHereLocation% ""%1"""
[FarHere.Reg.NT]
HKLM,%UDHERE%
HKLM,%UDHERE%,DisplayName,,"%FarHereName%"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\FarHere.inf"
HKCR,Directory\Shell\FarHere,,,"%FarHereAccel%"
HKCR,Directory\Shell\FarHere\command,,,"%FarHereLocation% ""%1"""
HKCR,Drive\Shell\FarHere,,,"%FarHereAccel%"
HKCR,Drive\Shell\FarHere\command,,,"%FarHereLocation% ""%1"""
HKCR,*\Shell\FarHere,,,"%FarHereAccel%"
HKCR,*\Shell\FarHere\command,,,"%FarHereLocation% ""%1"""
[FarHere.Remove.Reg.NT]
HKLM,%UDHERE%
HKLM,%UDHERE%,DisplayName,,"%FarHereName%"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\FarHere.inf"
HKCR,Directory\Shell\FarHere
HKCR,Drive\Shell\FarHere
HKCR,*\Shell\FarHere
[FarHere.Remove.Reg]
HKLM,%UDHERE%
HKLM,%UDHERE%,DisplayName,,"%FarHereName%"
HKLM,%UDHERE%,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\FarHere.inf"
HKCR,Directory\Shell\FarHere
HKCR,Drive\Shell\FarHere
HKCR,*\Shell\FarHere
[Strings]
FarHereName="Far Here Power Toy"
FarHereAccel="Fa&r Here"
UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\FarHere"
;FarHereLocation="c:\Program Files\far\far.exe" ;; DON'T Uncomment this line. Use FarHereInstall.cmd

View File

@@ -0,0 +1,41 @@
@echo off
set ACT=setup
if "%~1"=="/u" set ACT=uninstall
if not exist "%FARHOME%\ConEmu.exe" echo "%FARHOME%\ConEmu.exe" not found & goto err
if not exist "%FARHOME%\far.exe" echo "%FARHOME%\far.exe" not found & goto err
if not exist "%~dp0FarHere.dat" echo "%~dp0FarHere.dat" not found & goto err
rem Creating 'inf' file
copy "%~dp0FarHere.dat" "%~dp0FarHere.inf">nul
if errorlevel 1 goto CantCopy
echo FarHereLocation="""%FARHOME%\ConEmu.exe"" /single /cmd ""%FARHOME%\far.exe""">>"%~dp0FarHere.inf"
rem Doing action
goto %ACT%
:setup
echo Installing Far Here
call RUNDLL32.EXE syssetup.dll,SetupInfObjectInstallAction DefaultInstall.ntx86 132 %~dp0FarHere.inf
goto done
:uninstall
echo Uninstalling Far Here
RUNDLL32.EXE syssetup.dll,SetupInfObjectInstallAction DefaultUninstall.ntx86 132 %~dp0FarHere.inf
goto done
:done
del "%~dp0FarHere.inf"
goto fin
:CantCopy
echo Creating .inf file failed.
echo "%~dp0FarHere.inf" is write protected?
goto err
:err
pause
:fin

View File

@@ -0,0 +1,3 @@
@echo off
call "%~dp0FarHereInstall.cmd" /u

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -0,0 +1,35 @@
# Issue 1886: Change text cursor position with LeftClick was not working
# when PSReadLine was loaded in your $profile.
# Following will remove ENABLE_MOUSE_INPUT from console input mode flags
# Just call this script at the end of your $profile.
# (C) 2015 ConEmu.Maximus5@gmail.com
Add-Type -PassThru '
using System;
using System.Runtime.InteropServices;
public class ConsoleWinApi {
[DllImport("kernel32.dll")]
static extern IntPtr GetStdHandle(int nStdHandle);
[DllImport("kernel32.dll")]
static extern bool GetConsoleMode(IntPtr hConsoleHandle, out uint dwMode);
[DllImport("kernel32.dll")]
static extern bool SetConsoleMode(IntPtr hConsoleHandle, uint dwMode);
public static void RevokeMouseInput()
{
uint dwMode = 0;
IntPtr h = GetStdHandle(-10);
if (GetConsoleMode(h, out dwMode) && ((dwMode & 0x10) != 0))
{
SetConsoleMode(h, dwMode ^ 0x10);
}
}
}
' | Out-Null
[ConsoleWinApi]::RevokeMouseInput()

View File

@@ -0,0 +1,44 @@
@echo off
rem This example helper file may be used for showing
rem your current git branch and changes count in
rem the Far Manager prompt
rem Rename this file to 'git.cmd' and place somewhere in %PATH%
set TERM=msys
set check_br=NO
set git_fail=NO
rem If command may change working state - need check branch after...
for %%c in ("add","br","branch","checkout","co","commit","pull","push","rebase","stash") do if /I "%~1" == %%c set check_br=YES&goto cmd_checked
:cmd_checked
:run_git
setlocal
set ConEmuHooks=OFF
call "%~dp0..\bin\git" %*
if errorlevel 1 (
endlocal
goto fail
) else (
endlocal
goto done
)
:fail
set git_fail=YES
:done
if NOT %check_br%==YES goto :EOF
if %git_fail%==YES (
set gitbranch=^>
"%ConEmuBaseDir%\ConEmuC.exe" /export=CON gitbranch
) else (
call "%~dp0GitShowBranch.cmd"
)

View File

@@ -0,0 +1,22 @@
@chcp 65001 & (cmd /c type "%~dpn0.cmd") & pause & goto :EOF
Specials: ← → ↔ ↑ ↓ ↕ ⇔ ⇐ ⇑ ⇒ ⇓
Ligatures: ffttft ==> ==< === == (unsupported yet)
English: texts, web pages and documents
Graves,etc: à á â ã ä å æ ç è é ê ë ì í î ï
Greek: ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο
Arabic: ڠ ڡ ڢ ڣ ڤ ڥ ڦ ڧ ڨ ک ڪ ګ ڬ ڭ ڮ گ
Full width:
Romanian: texte, pagini Web şi a documentelor
Vietnamese: văn bản, các trang web và các tài liệu
Russian: тексты, веб-страницы и документы
Japanese: テキスト、Webページや文書
Yiddish: טעקסץ, וועב זייַטלעך און דאָקומענטן
Hindi: पाठ, वेब पृष्ठों और दस्तावेज
Thai: ข้อความ หน้า เว็บ และ เอกสาร
Korean: 텍스트, 웹 페이지 및 문서
Chinese: 文本,網頁和文件
If you can read the output of this batch
your console runs correctly.