Skip to content

feature request : paste command to terminal prompt instead of instant execution #271

Answered by ofey404
roeniss asked this question in Q&A
Discussion options

You must be logged in to vote

Well, maybe add this bash snippet in your bashrc can help you?

It can paste command to termnal prompt instead of instant execution. Works for me.

pet-select () 
{ 
    BUFFER=$(pet search --query "$READLINE_LINE");
    READLINE_LINE=$BUFFER;
    READLINE_POINT=${#BUFFER}
}

bind -x '"\C-x\C-x": pet-select'

Replies: 14 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@RamiAwar
Comment options

Answer selected by RamiAwar
Comment options

You must be logged in to vote
1 reply
@RamiAwar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #154 on February 10, 2024 07:30.