@@ -12,12 +12,16 @@ Great thanks to leetcode.com, an really awesome website!
1212
1313* [ Install] ( #install )
1414* [ Quick Start] ( #quick-start )
15- * [Login](#1-login)
16- * [List](#2-list)
17- * [Prepare](#3-prepare)
18- * [Coding](#4-coding)
19- * [Test](#5-test)
20- * [Submit](#6-submit)
15+ * [1. Login](#1-login)
16+ * [2. List](#2-list)
17+ * [3. Prepare](#3-prepare)
18+ * [4. Coding](#4-coding)
19+ * [5. Test](#5-test)
20+ * [6. Submit](#6-submit)
21+ * [ Tips] ( #tips )
22+ * [Bash Completion](#bash-completion)
23+ * [Colorful Output](#colorful-output)
24+ * [Configuration](#configuration)
2125
2226## Install
2327
@@ -58,7 +62,6 @@ Navigate all the problems. The heading `✔` means you have AC-ed the problem.
5862* ` -l ` to filter by level.
5963* ` -s ` to show statistic counters.
6064* ` lc list <keyword> ` to search by keyword.
61- * ` --no-color ` to disable colorful output.
6265
6366### 3. Prepare
6467
@@ -136,3 +139,32 @@ Customize your testcase and run it against leetcode.
136139 ✔ Accepted
137140 ✔ 16/16 cases passed (12 ms)
138141
142+ ## Tips
143+
144+ ### Bash Completion
145+
146+ Copy ` .lc-completion.bash ` to your home directory, and source it in .bashrc (Linux) or .bash_profile (MacOS).
147+
148+ $ cp .lc-completion.bash ~
149+ $ echo "source ~/.lc-completion.bash" >> ~/.bashrc
150+ $ source ~/.bashrc
151+
152+ $ lc list --<tab>
153+ --help --keyword --level --stat --undone
154+
155+ ### Colorful Output
156+
157+ * ` --color ` to enable color.
158+ * ` --no-color ` to disable it.
159+
160+ Or use configuration setting, see below.
161+
162+
163+ ### Configuration
164+
165+ Create a file named ` .lcconfig ` in your home directory. Here is an example:
166+
167+ {
168+ "LANG": "java",
169+ "USE_COLOR": true
170+ }
0 commit comments