根據你要用的編譯器,打開相對應的shell
- MSYS2 MinGW 32-bit
- 編譯32-bit程式用
- MSYS2 MinGW 64-bit
- 編譯64-bit程式用
- MSYS2 MSYS
- 編譯出的程式會依賴
msys2.dll
※注意: 貼上是
Shift + Insert
安裝完msys2後,更新系統
$ pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
接著更新套件
$ pacman -Su
警告:terminate MSYS2 without returning to shell and check for updates again
警告:for example close your terminal window instead of calling exit
接著安裝 Toolchain
# 32-bit
$ pacman -S mingw-w64-i686-toolchain
# 64-bit
$ pacman -S mingw-w64-x86_64-toolchain
安裝一些必要程式
$ pacman -S base-devel --needed
$ pacman -S make git
完成!
.bashrc
bash的設定檔案,裏頭有一些預設好用的alias,需要取消註解可以用。
打開.bashrc
$ cd ~ && explorer .
取消註解想要的項目,甚至是修改
重新載入設定檔案
$ source ~/.bashrc
ls
變成有顏色了!
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing