1.3.17 Fixes for clink settings and history

This commit is contained in:
dgames 2020-12-24 12:14:46 -05:00
parent ae7ddb7f86
commit da0af1d96b
3 changed files with 9 additions and 3 deletions

6
vendor/init.bat vendored
View File

@ -397,6 +397,12 @@ if "%CMDER_ALIASES%" == "1" if exist "%CMDER_ROOT%\bin\alias.bat" if exist "%CMD
echo * Search for 'user-aliases' and replace it with 'user_aliases'. echo * Search for 'user-aliases' and replace it with 'user_aliases'.
) )
alias history |find /i "cat" >nul
if "%ERRORLEVEL%" == "0" (
echo Migrating alias 'history' to new Clink 1.x.x...
"%CMDER_ROOT%\vendor\bin\alias.cmd" history="^%%CMDER_ROOT^%%\vendor\clink\clink.bat" history
)
set initialConfig= set initialConfig=
:CMDER_CONFIGURED :CMDER_CONFIGURED

4
vendor/sources.json vendored
View File

@ -6,8 +6,8 @@
}, },
{ {
"name": "clink", "name": "clink",
"version": "1.1.10", "version": "1.1.14",
"url": "https://github.com/chrisant996/clink/releases/download/v1.1.10/clink.1.1.10.125c9f.zip" "url": "https://github.com/chrisant996/clink/releases/download/v1.1.14/clink.1.1.14.a44ba3.zip"
}, },
{ {
"name": "conemu-maximus5", "name": "conemu-maximus5",

View File

@ -9,7 +9,7 @@ gl=git log --oneline --all --graph --decorate $*
ls=ls --show-control-chars -F --color $* ls=ls --show-control-chars -F --color $*
pwd=cd pwd=cd
clear=cls clear=cls
history=cat -n "%CMDER_ROOT%\config\.history" history="%cmder_root%\vendor\clink\clink.bat" history
unalias=alias /d $1 unalias=alias /d $1
vi=vim $* vi=vim $*
cmderr=cd /d "%CMDER_ROOT%" cmderr=cd /d "%CMDER_ROOT%"