Skip to content

Commit

Permalink
docs: update tools md add highlight section
Browse files Browse the repository at this point in the history
  • Loading branch information
EscapeLife committed Sep 14, 2022
1 parent 9c534ed commit 9f9f962
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/terminal/bat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

> **[bat](https://github.com/sharkdp/bat) - 增强版 cat 工具(带有 git 集成和语法高亮)**
一个 `cat` 克隆,搭配语法高亮和 `Git` 集成。

- **语法高亮**
- **Git 集成**
- **不可打印字符可视化**
Expand All @@ -10,6 +12,8 @@

![bat](../images/tools/tools-bat.png)

- **工具安装**

```bash
# 安装对应工具(Ubuntu)
$ sudo apt install bat
Expand All @@ -20,6 +24,8 @@ $ ln -s /usr/bin/batcat ~/.local/bin/batcat
$ brew install bat
```

- **使用方式**

```bash
# 获取帮助信息
$ ➜ bat --help
Expand Down Expand Up @@ -59,6 +65,8 @@ OPTIONS:
Show version information.
```

- **示例说明**

```bash
# 在终端中查看一个文件
> bat README.md
Expand Down
4 changes: 4 additions & 0 deletions tools/terminal/exa.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

![exa](../images/tools/tools-exa.png)

- **工具安装**

```bash
# 安装对应工具(Ubuntu)
$ sudo apt install exa
Expand All @@ -14,6 +16,8 @@ $ sudo apt install exa
$ brew install exa
```

- **使用方式**

```bash
~ » exa --help
Usage:
Expand Down
4 changes: 4 additions & 0 deletions tools/terminal/fzf.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

![fzf](../images/tools/tools-fzf.png)

- **工具安装**

```bash
# 安装对应工具
$ brew install fzf # macOS
Expand All @@ -29,6 +31,8 @@ $(brew --prefix)/opt/fzf/install
alias his="history | fzf"
```

- **示例说明**

```bash
# 打开文件搜索功能
$ fzf
Expand Down
4 changes: 4 additions & 0 deletions tools/terminal/htop.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

![htop](../images/tools/tools-htop.png)

- **工具安装**

```bash
# 安装对应工具
$ brew install htop # macOS
Expand All @@ -20,6 +22,8 @@ $ sudo apt-get install htop # Ubuntu
alias top="htop"
```

- **使用方式**

```bash
# 帮助信息
➜ htop --help
Expand Down
6 changes: 6 additions & 0 deletions tools/terminal/httpie.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

![httpie](../images/tools/tools-httpie.gif)

- **工具安装**

```bash
# 安装对应工具(Ubuntu)
$ sudo snap install httpie
Expand All @@ -32,6 +34,8 @@ $ sudo apt install httpie
$ sudo apt upgrade httpie
```

- **使用方式**

```bash
# 获取帮助信息
$ ➜ http --help
Expand Down Expand Up @@ -60,6 +64,8 @@ Positional arguments:
$ http :/foo # => http://localhost/foo
```
- **示例说明**
```bash
# https://httpie.io/docs/cli/examples

Expand Down
6 changes: 6 additions & 0 deletions tools/terminal/hyperfine.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

![hyperfine](../images/tools/tools-hyperfine.gif)

- **工具安装**

```bash
# 安装对应工具(Ubuntu)
$ sudo apt install hyperfine
Expand All @@ -28,6 +30,8 @@ $ wget https://github.com/sharkdp/hyperfine/releases/download/v1.15.0/hyperfine_
$ sudo dpkg -i hyperfine_1.15.0_amd64.deb
```

- **使用方式**

```bash
~ » exa --help
hyperfine 1.12.0
Expand Down Expand Up @@ -110,6 +114,8 @@ OPTIONS:
Show version information.
```
- **示例说明**
```bash
# 基本基准测试
# 参数可以是任何shell命令
Expand Down
8 changes: 8 additions & 0 deletions tools/terminal/prettyping.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

> **[prettyping](https://github.com/denilsonsa/prettyping) - 使输出更漂亮、更丰富多彩、更紧凑和更容易阅读**
- **工具安装**

```bash
# 下载最新版工具
$ curl -O https://raw.githubusercontent.com/denilsonsa/prettyping/master/prettyping
$ chmod +x prettyping
```

- **使用方式**

```bash
# 获取帮助信息
$ ./prettyping --help
Usage: prettyping [prettyping parameters] <standard ping parameters>
Expand Down Expand Up @@ -39,6 +45,8 @@ ping parameters handled by prettyping:
-v Verbose output seems to be the default mode in ping.
```
- **示例说明**
```bash
# 执行命令快速测速
$ ./prettyping www.baidu.com
Expand Down
6 changes: 6 additions & 0 deletions tools/terminal/procs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

![procs](../images/tools/tools-procs.png)

- **工具安装**

```bash
# 安装对应工具(Ubuntu)
$ sudo snap install procs
Expand All @@ -17,6 +19,8 @@ $ brew install procs
$ source <(procs --completion-out bash)
```

- **使用方式**

```bash
# procs 待过滤的关键字
~ » procs --help
Expand Down Expand Up @@ -62,6 +66,8 @@ OPTIONS:
-V, --version Print version information
```

- **示例说明**

```bash
# 通过非数字关键字搜索
> procs zsh
Expand Down
6 changes: 6 additions & 0 deletions tools/terminal/ripgrep.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

![ripgrep](../images/tools/tools-ripgrep.png)

- **工具安装**

```bash
# 安装对应工具(Ubuntu)
$ sudo apt-get install ripgrep
Expand All @@ -14,6 +16,8 @@ $ sudo apt-get install ripgrep
$ brew install ripgrep
```

- **使用方式**

```bash
~ » ripgrep --help
ripgrep 13.0.0
Expand All @@ -38,6 +42,8 @@ USAGE:
rg [OPTIONS] --version
```

- **示例说明**

```bash
# 直接搜索内容
$ rg 'name' ./
Expand Down
6 changes: 6 additions & 0 deletions tools/terminal/zoxide.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

![zoxide](../images/tools/tools-zoxide.gif)

- **工具安装**

```bash
# 安装对应工具(Ubuntu)
$ sudo apt install zoxide
Expand All @@ -18,6 +20,8 @@ $ eval "$(zoxide init zsh)"
$ eval "$(zoxide init bash)"
```

- **使用方式**

```bash
~ » zoxide --help
zoxide v0.4.3-unknown
Expand All @@ -39,6 +43,8 @@ SUBCOMMANDS:
remove Remove a directory
```

- **示例说明**

```bash
# z 目录

Expand Down

0 comments on commit 9f9f962

Please sign in to comment.