forked from thoughtbot/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdot_myclirc
More file actions
171 lines (141 loc) · 5.34 KB
/
Copy pathdot_myclirc
File metadata and controls
171 lines (141 loc) · 5.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# vi: ft=dosini
[main]
# Enables context sensitive auto-completion. If this is disabled the all
# possible completions will be listed.
smart_completion = True
# Multi-line mode allows breaking up the sql statements into multiple lines. If
# this is set to True, then the end of the statements must have a semi-colon.
# If this is set to False then sql statements can't be split into multiple
# lines. End of line (return) is considered as the end of the statement.
multi_line = False
# Destructive warning mode will alert you before executing a sql statement
# that may cause harm to the database such as "drop table", "drop database"
# or "shutdown".
destructive_warning = True
# log_file location.
log_file = ~/.mycli.log
# Default log level. Possible values: "CRITICAL", "ERROR", "WARNING", "INFO"
# and "DEBUG". "NONE" disables logging.
log_level = INFO
# Log every query and its results to a file. Enable this by uncommenting the
# line below.
# audit_log = ~/.mycli-audit.log
# Timing of sql statements and table rendering.
timing = True
# Beep after long-running queries are completed; 0 to disable.
beep_after_seconds = 0
# Table format. Possible values: ascii, double, github,
# psql, plain, simple, grid, fancy_grid, pipe, orgtbl, rst, mediawiki, html,
# latex, latex_booktabs, textile, moinmoin, jira, vertical, tsv, csv.
# Recommended: ascii
table_format = ascii
# Syntax coloring style. Possible values (many support the "-dark" suffix):
# manni, igor, xcode, vim, autumn, vs, rrt, native, perldoc, borland, tango, emacs,
# friendly, monokai, paraiso, colorful, murphy, bw, pastie, paraiso, trac, default,
# fruity.
# Screenshots at http://mycli.net/syntax
# Can be further modified in [colors]
syntax_style = default
# Keybindings: Possible values: emacs, vi.
# Emacs mode: Ctrl-A is home, Ctrl-E is end. All emacs keybindings are available in the REPL.
# When Vi mode is enabled you can use modal editing features offered by Vi in the REPL.
key_bindings = vi
# Enabling this option will show the suggestions in a wider menu. Thus more items are suggested.
wider_completion_menu = False
# MySQL prompt
# \D - The full current date
# \d - Database name
# \h - Hostname of the server
# \m - Minutes of the current time
# \n - Newline
# \P - AM/PM
# \p - Port
# \R - The current time, in 24-hour military time (0-23)
# \r - The current time, standard 12-hour time (1-12)
# \s - Seconds of the current time
# \t - Product type (Percona, MySQL, MariaDB, TiDB)
# \A - DSN alias name (from the [alias_dsn] section)
# \u - Username
# \x1b[...m - insert ANSI escape sequence
prompt = '\t \u@\h:\d> '
prompt_continuation = '->'
# Skip intro info on startup and outro info on exit
less_chatty = False
# Use alias from --login-path instead of host name in prompt
login_path_as_host = False
# Cause result sets to be displayed vertically if they are too wide for the current window,
# and using normal tabular format otherwise. (This applies to statements terminated by ; or \G.)
auto_vertical_output = False
# keyword casing preference. Possible values "lower", "upper", "auto"
keyword_casing = auto
# disabled pager on startup
enable_pager = False
# Choose a specific pager
pager = 'less'
# Custom colors for the completion menu, toolbar, etc.
[colors]
# Completion menu
completion-menu.completion.current = 'bg:#002b36 #93a1a1'
completion-menu.completion = 'bg:#002b36 #839496'
completion-menu.meta.completion.current = 'bg:#073642 #93a1a1'
completion-menu.meta.completion = 'bg:#073642 #839496'
completion-menu.multi-column-meta = 'bg:#586e75 #002b36'
# Scrollbar
scrollbar.arrow = 'bg:#002b36'
scrollbar = 'bg:#268bd2'
# Selection
selected = '#93a1a1 bg:#586e75'
search = '#93a1a1 bg:#268bd2'
search.current = '#93a1a1 bg:#2aa198'
# Bottom toolbar
bottom-toolbar = 'bg:#002b36 #93a1a1'
bottom-toolbar.off = 'bg:#073642 #586e75'
bottom-toolbar.on = 'bg:#002b36 #93a1a1'
# Search toolbar
search-toolbar = 'noinherit bold'
search-toolbar.text = 'nobold'
system-toolbar = 'noinherit bold'
arg-toolbar = 'noinherit bold'
arg-toolbar.text = 'nobold'
# Transaction indicators
bottom-toolbar.transaction.valid = 'bg:#002b36 #859900 bold'
bottom-toolbar.transaction.failed = 'bg:#002b36 #dc322f bold'
# Output header (bold, green)
output.header = "#859900 bold"
output.odd-row = ""
output.even-row = ""
output.null = "#93a1a1"
# SQL syntax highlighting overrides
sql.comment = 'italic #93a1a1'
sql.comment.multi-line = 'italic #586e75'
sql.comment.single-line = 'italic #586e75'
sql.comment.optimizer-hint = 'italic #839496'
sql.escape = 'border:#d33682'
sql.keyword = 'bold #859900'
sql.datatype = 'nobold #b58900'
sql.literal = '#2aa198'
sql.literal.date = '#268bd2'
sql.symbol = '#6c71c4'
sql.quoted-schema-object = '#268bd2'
sql.quoted-schema-object.escape = '#b58900'
sql.constant = '#dc322f'
sql.function = '#268bd2'
sql.variable = '#839496'
sql.number = '#93a1a1'
sql.number.binary = '#d33682'
sql.number.float = '#268bd2'
sql.number.hex = '#859900'
sql.number.integer = '#93a1a1'
sql.operator = '#859900'
sql.punctuation = '#2aa198'
sql.string = '#d33682'
sql.string.double-quouted = '#cb4b16'
sql.string.escape = 'bold #d75f00'
sql.string.single-quoted = '#d33682'
sql.whitespace = '#586e75'
# Favorite queries.
[favorite_queries]
# Use the -d option to reference a DSN.
# Special characters in passwords and other strings can be escaped with URL encoding.
[alias_dsn]
# example_dsn = mysql://[user[:password]@][host][:port][/dbname]