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