Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chenjiandongx/pls

✏️ Impressive Linux commands cheat sheet CLI written in Go.
https://github.com/chenjiandongx/pls

cheatsheet linux-command

Last synced: about 1 month ago
JSON representation

✏️ Impressive Linux commands cheat sheet CLI written in Go.

Awesome Lists containing this project

README

        

# pls

> Impressive Linux commands cheat sheet cli. [Python 版本](https://github.com/chenjiandongx/how)

### Installation

#### 1) 使用 `go get` 安装

```shell
$ go get -u github.com/chenjiandongx/pls
```

#### 2) 使用编译好的二进制版本

https://github.com/chenjiandongx/pls/releases

### Usages

```shell
~ 🐶 pls --help
Impressive Linux commands cheat sheet cli.

Usage:
pls [command]

Available Commands:
help Help about any command
search Search command by keywords
show Show the specified command usage.
upgrade Upgrade all commands from remote.
version Prints the version of pls

Flags:
-h, --help help for pls

Use "pls [command] --help" for more information about a command.
```

建议第一次使用的时候先初始化所有命令
```shell
$ 🐶 pls upgrade
```

配置文件位于 `~/.commands/config.json` 可以更改命令文件下载目录

```shell
❯ 🐶 cat ~/.commands/config.json
{"dir":"/Users/chenjiandongx/.commands"}
```

可以将输出结果传入到 less 管道
```shell
$ 🐶 pls show curl | less
```

效果图

![](https://user-images.githubusercontent.com/19553554/122259619-f1e3f780-cf04-11eb-949e-763d82a4e3b9.png)
![](https://user-images.githubusercontent.com/19553554/122258451-a0873880-cf03-11eb-865f-067416787cb7.png)

### LICENSE

MIT [©chenjiandongx](https://github.com/chenjiandongx)