https://github.com/nonacosa/share_shell
is a plug-in to Generate printer style's .html file to show our terminal operation.
https://github.com/nonacosa/share_shell
Last synced: 7 months ago
JSON representation
is a plug-in to Generate printer style's .html file to show our terminal operation.
- Host: GitHub
- URL: https://github.com/nonacosa/share_shell
- Owner: nonacosa
- License: mit
- Created: 2018-08-06T15:06:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-12T07:19:26.000Z (about 6 years ago)
- Last Synced: 2025-03-05T23:32:42.653Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://img.shields.io/badge/build-passing-brightgreen.svg)
![]()
[](https://www.npmjs.com/package/share_shell)
[](https://juejin.im/post/5b6b086cf265da0f8d368935)
## share_shell share your shell on html
### 安装
```shell
sudo npm install share_shell -g
```### 帮助
```shell
tw --help #1.0暂时用这个命令,没想到好的缩写
```
### 查看版本
```shell
tw --version || tw -v
```### 使用
```shell
# tw share "要展示的命令" -p "路径"
# 例如想 docker ps -a 秀一波你的docker容器
tw share "docker ps -a" 或 tw s "docker ps -a" # 默认生成 share_you_shell.html 到当前目录
# 指定路径
tw share "ls -all" -p /usr/local/html/share_shell.html #自动创建文件,存在默认覆盖```
- 为什么做这个?灵感是什么?> 源自 [youtube](https://www.youtube.com/watch?v=NPbiyTVU6YA&lc=z23fgjp5zvjyspkx504t1aokgij4o0rzwvzjn3zexosirk0h00410.1533224892000721) 一段对话 ,感兴趣的可以关注一波