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
Size
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