Merge pull request #2068 from cmderdev/history_cmd_index_sync

Print Index in History Command Output
This commit is contained in:
Dax T Games 2019-05-05 17:28:07 -04:00 committed by GitHub
commit 865e443fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 29 deletions

View File

@ -14,6 +14,9 @@
* Provide default settings for Clink that updates the history file in real time * Provide default settings for Clink that updates the history file in real time
* Turn this on in existing Cmder using `clink set history_io 1` * Turn this on in existing Cmder using `clink set history_io 1`
* Allow clink disable by setting CMDER_CLINK=0 before starting task * Allow clink disable by setting CMDER_CLINK=0 before starting task
* Pull Request: [#2068](https://github.com/cmderdev/cmder/pull/2068)
* Print Index in History Command Output.
* Sets default `history_expand_mode = 3` in initial Clink Settings.
### Adds ### Adds

View File

@ -87,7 +87,7 @@ history_io = 1
# from the history. This can be enabled and disable by setting this value to 1 # from the history. This can be enabled and disable by setting this value to 1
# or 0. Values or 2, 3 or 4 will skip any ! character quoted in single, double, # or 0. Values or 2, 3 or 4 will skip any ! character quoted in single, double,
# or both quotes respectively. # or both quotes respectively.
history_expand_mode = 4 history_expand_mode = 3
# name: Support Windows' Ctrl-Alt substitute for AltGr # name: Support Windows' Ctrl-Alt substitute for AltGr
# type: bool # type: bool

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 "%CMDER_ROOT%\config\.history" history=cat -n "%CMDER_ROOT%\config\.history"
unalias=alias /d $1 unalias=alias /d $1
vi=vim $* vi=vim $*
cmderr=cd /d "%CMDER_ROOT%" cmderr=cd /d "%CMDER_ROOT%"