Format terminal commands on copy

Automatically remove bash comments `#` and prompts `$` on copy by reading the modifying the selected content.

作者
kekumu
今日安裝
0
安裝總數
11
評價
0 0 0
版本
1.0.1
建立日期
2020-04-28
更新日期
2020-04-28
尺寸
1.8 KB
授權條款
GPL-3.0-or-later
腳本執行於
所有網站

Format terminal commands on copy

Automatically remove bash comments # and prompts $ on copy by reading the modifying the selected content.

Usage

Just copy some text containing with lines that start with either # or $.

# Sometimes you just want to copy and paste a set of commands
$ echo hello

# But you get a bunch of comments and shell prompts that you need to avoid
# pasting in the terminal
$ echo world