You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Colors and syntax highlighting](#colors-and-syntax-highlighting)
35
-
-[Cygwin, Mingw, Plan9](#cygwin-mingw-plan9)
36
-
-[Usage](#usage)
37
-
-[Documentation and Help](#documentation-and-help)
38
-
-[Contributing](#contributing)
22
+
You can also check out the website for Micro at https://micro-editor.github.io.
39
23
40
24
- - -
41
25
@@ -88,7 +72,7 @@ Pre-built binaries are distributed in [releases](https://github.com/zyedidia/mic
88
72
89
73
To uninstall micro, simply remove the binary, and the configuration directory at `~/.config/micro`.
90
74
91
-
#### Quick-install script
75
+
#### Third-party quick-install script
92
76
93
77
```bash
94
78
curl https://getmic.ro | bash
@@ -178,7 +162,7 @@ Without these tools installed, micro will use an internal clipboard for copy and
178
162
179
163
If your operating system does not have a binary release, but does run Go, you can build from source.
180
164
181
-
Make sure that you have Go version 1.16 or greater and Go modules are enabled.
165
+
Make sure that you have Go version 1.19 or greater and Go modules are enabled.
182
166
183
167
```
184
168
git clone https://github.com/zyedidia/micro
@@ -196,16 +180,20 @@ You can install directly with `go get` (`go get github.com/zyedidia/micro/cmd/mi
196
180
recommended because it doesn't build micro with version information (necessary for the plugin manager),
197
181
and doesn't disable debug mode.
198
182
199
-
### Fully static binary
183
+
### Fully static or dynamically linked binary
200
184
201
-
By default, the micro binary will dynamically link with core system libraries (this is generally
202
-
recommended for security and portability). However, there is a fully static prebuilt binary that
203
-
is provided for amd64 as `linux-static.tar.gz`, and to build a fully static binary from source, run
185
+
By default, the micro binary is linked statically to increase the portability of the prebuilt binaries.
186
+
This behavior can simply be overriden by providing `CGO_ENABLED=1` to the build target.
204
187
205
188
```
206
-
CGO_ENABLED=0 make build
189
+
CGO_ENABLED=1 make build
207
190
```
208
191
192
+
Afterwards the micro binary will dynamically link with the present core system libraries.
193
+
194
+
**Note for Mac:**
195
+
Native macOS builds are done with `CGO_ENABLED=1` forced set to support adding the "Information Property List" in the linker step.
196
+
209
197
### macOS terminal
210
198
211
199
If you are using macOS, you should consider using [iTerm2](http://iterm2.com/) instead of the default terminal (Terminal.app). The iTerm2 terminal has much better mouse support as well as better handling of key events. For best keybinding behavior, choose `xterm defaults` under `Preferences->Profiles->Keys->Presets...`, and select `Esc+` for `Left Option Key` in the same menu. The newest versions also support true color.
0 commit comments