settings 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # name: Pressing Ctrl-D exits session
  2. # type: bool
  3. # Ctrl-D exits cmd.exe when it is pressed on an empty line.
  4. ctrld_exits = 1
  5. # name: Toggle if pressing Esc clears line
  6. # type: bool
  7. # Clink clears the current line when Esc is pressed (unless Readline's Vi mode
  8. # is enabled).
  9. esc_clears_line = 1
  10. # name: Match display colour
  11. # type: int
  12. # Colour to use when displaying matches. A value less than 0 will be the
  13. # opposite brightness of the default colour.
  14. match_colour = -1
  15. # name: Executable match style
  16. # type: enum
  17. # 0 = PATH only
  18. # 1 = PATH and CWD
  19. # 2 = PATH, CWD, and directories
  20. # Changes how Clink will match executables when there is no path separator on
  21. # the line. 0 = PATH only, 1 = PATH and CWD, 2 = PATH, CWD, and directories. In
  22. # all cases both executables and directories are matched when there is a path
  23. # separator present. A value of -1 will disable executable matching completely.
  24. exec_match_style = 2
  25. # name: Whitespace prefix matches files
  26. # type: bool
  27. # If the line begins with whitespace then Clink bypasses executable matching and
  28. # will match all files and directories instead.
  29. space_prefix_match_files = 1
  30. # name: Colour of the prompt
  31. # type: int
  32. # Surrounds the prompt in ANSI escape codes to set the prompt's colour. Disabled
  33. # when the value is less than 0.
  34. prompt_colour = -1
  35. # name: Auto-answer terminate prompt
  36. # type: enum
  37. # 0 = Disabled
  38. # 1 = Answer 'Y'
  39. # 2 = Answer 'N'
  40. # Automatically answers cmd.exe's 'Terminate batch job (Y/N)?' prompts. 0 =
  41. # disabled, 1 = answer 'Y', 2 = answer 'N'.
  42. terminate_autoanswer = 0
  43. # name: Lines of history saved to disk
  44. # type: int
  45. # When set to a positive integer this is the number of lines of history that
  46. # will persist when Clink saves the command history to disk. Use 0 for infinite
  47. # lines and <0 to disable history persistence.
  48. history_file_lines = 10000
  49. # name: Skip adding lines prefixed with whitespace
  50. # type: bool
  51. # Ignore lines that begin with whitespace when adding lines in to the history.
  52. history_ignore_space = 0
  53. # name: Controls how duplicate entries are handled
  54. # type: enum
  55. # 0 = Always add
  56. # 1 = Ignore
  57. # 2 = Erase previous
  58. # If a line is a duplicate of an existing history entry Clink will erase the
  59. # duplicate when this is set 2. A value of 1 will not add duplicates to the
  60. # history and a value of 0 will always add lines. Note that history is not
  61. # deduplicated when reading/writing to disk.
  62. history_dupe_mode = 2
  63. # name: Read/write history file each line edited
  64. # type: bool
  65. # When non-zero the history will be read from disk before editing a new line and
  66. # written to disk afterwards.
  67. history_io = 0
  68. # name: Sets how command history expansion is applied
  69. # type: enum
  70. # 0 = Off
  71. # 1 = On
  72. # 2 = Not in single quotes
  73. # 3 = Not in double quote
  74. # 4 = Not in any quotes
  75. # The '!' character in an entered line can be interpreted to introduce words
  76. # from the history. This can be enabled and disable by setting this value to 1
  77. # or 0. Values or 2, 3 or 4 will skip any ! character quoted in single, double,
  78. # or both quotes respectively.
  79. history_expand_mode = 4
  80. # name: Support Windows' Ctrl-Alt substitute for AltGr
  81. # type: bool
  82. # Windows provides Ctrl-Alt as a substitute for AltGr, historically to support
  83. # keyboards with no AltGr key. This may collide with some of Readline's
  84. # bindings.
  85. use_altgr_substitute = 1
  86. # name: Strips CR and LF chars on paste
  87. # type: enum
  88. # 0 = Paste unchanged
  89. # 1 = Strip
  90. # 2 = As space
  91. # Setting this to a value >0 will make Clink strip CR and LF characters from
  92. # text pasted into the current line. Set this to 1 to strip all newline
  93. # characters and 2 to replace them with a space.
  94. strip_crlf_on_paste = 2
  95. # name: Enables basic ANSI escape code support
  96. # type: bool
  97. # When printing the prompt, Clink has basic built-in support for SGR ANSI escape
  98. # codes to control the text colours. This is automatically disabled if a third
  99. # party tool is detected that also provides this facility. It can also be
  100. # disabled by setting this to 0.
  101. ansi_code_support = 1