add example fish plugin
This commit is contained in:
parent
bd43832eee
commit
fd2095c86e
|
@ -3,6 +3,7 @@
|
||||||
wip: generate python scripts from (s)hell pipelines
|
wip: generate python scripts from (s)hell pipelines
|
||||||
|
|
||||||
Intended to be used with a shell plugin to make those oneliners that get out of hand more manageable.
|
Intended to be used with a shell plugin to make those oneliners that get out of hand more manageable.
|
||||||
|
An example plugin for fish is provided in hellpipe.fish.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# bind to a key combination of your choice, e.g. for alt-z
|
||||||
|
# bind --user \ez __hellpipeify
|
||||||
|
|
||||||
|
function __hellpipeify
|
||||||
|
commandline -j | python3 -m hellpipe.main - > temp.py
|
||||||
|
or return 1
|
||||||
|
__fish_disable_bracketed_paste
|
||||||
|
$EDITOR temp.py
|
||||||
|
or return 1
|
||||||
|
__fish_enable_bracketed_paste
|
||||||
|
commandline -r -j -- "python3 temp.py"
|
||||||
|
commandline -C 999999
|
||||||
|
commandline -f repaint
|
||||||
|
end
|
Loading…
Reference in New Issue