Skip to content

Clink settings and history file changed #2451

@i-s-o

Description

@i-s-o

Purpose of the issue

  • Bug report (encountered problems/errors)

Version Information

1.3.17

Description of the issue

The new version of Clink appears to have revamped its settings system:

  1. Instead of %CMDER_USER_CONFIG%\settings, it is now %CMDER_USER_CONFIG%\clink_settings (i.e. the default settings or existing settings are not picked up).
  2. The actual names of settings keys are now different (e.g. history.max_lines instead of history_file_lines).
  3. The history is now saved to %CMDER_USER_CONFIG%\clink_history instead of %CMDER_USER_CONFIG%\.history.
    a. the .history file is ignored for existing installations
    b. history command (i.e. alias) is not working properly

See: https://chrisant996.github.io/clink/clink.html#configuring-clink

Old

C:\tools\cmder
λ clink set
Available options:

ctrld_exits ............... 1      Pressing Ctrl-D exits session
esc_clears_line ........... 1      Toggle if pressing Esc clears line
match_colour .............. -1     Match display colour
exec_match_style .......... 2      Executable match style
space_prefix_match_files .. 1      Whitespace prefix matches files
prompt_colour ............. -1     Colour of the prompt
terminate_autoanswer ...... 0      Auto-answer terminate prompt
history_file_lines ........ 10000  Lines of history saved to disk
history_ignore_space ...... 0      Skip adding lines prefixed with whitespace
history_dupe_mode ......... 0      Controls how duplicate entries are handled
history_io ................ 1      Read/write history file each line edited
history_expand_mode ....... 3      Sets how command history expansion is applied
use_altgr_substitute ...... 1      Support Windows' Ctrl-Alt substitute for AltGr
strip_crlf_on_paste ....... 2      Strips CR and LF chars on paste
ansi_code_support ......... 1      Enables basic ANSI escape code support

Settings path: C:\tools\cmder\config/settings

New

C:\tools\cmder
λ clink set
clink.paste_crlf                 space
clink.path
clink.promptfilter               True
cmd.auto_answer                  off
cmd.ctrld_exits                  True
color.cmd                        bold
color.doskey                     bright cyan
color.filtered                   bold
color.hidden
color.input
color.interact                   bold
color.modmark
color.readonly
doskey.enhanced                  True
exec.cwd                         True
exec.dirs                        True
exec.enable                      True
exec.path                        True
exec.space_prefix                True
files.hidden                     True
files.system                     False
files.unc_paths                  False
history.dont_add_to_history_cmd  exit history
history.dupe_mode                erase_prev
history.expand_mode              not_quoted
history.ignore_space             True
history.max_lines                5000
history.save                     True
history.shared                   False
lua.break_on_error               False
lua.break_on_traceback           False
lua.debug                        False
lua.path
lua.traceback_on_error           False
match.ignore_case                relaxed
match.sort_dirs                  with
match.wild                       True
readline.hide_stderr             False
terminal.emulation               auto
terminal.modify_other_keys       True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions