keep icon indicating copy to clipboard operation
keep copied to clipboard

Using `~/.zsh_history` to keep commands

Open TwistingTwists opened this issue 10 years ago • 6 comments

How can I use commands from ~/.zsh_history in keep?

something like, keep ssh from history -- gives me option to choose from all the commands that have ssh in them (via grep?)

TwistingTwists avatar Nov 29 '15 04:11 TwistingTwists

This looks like a new feature. Cool. I'll try to implement that.

OrkoHunter avatar Nov 29 '15 06:11 OrkoHunter

A fair alternative can be using reverse search by Control + R and passing it to keep.

OrkoHunter avatar Jun 12 '16 12:06 OrkoHunter

@OrkoHunter Should this be another option in keep new or another command like keep addfromhist?

Parth-Vader avatar May 07 '17 07:05 Parth-Vader

There should be only one way to add commands, and let that be keep new

OrkoHunter avatar May 07 '17 08:05 OrkoHunter

@Parth-Vader While taking input for a new command, how about displaying a list of options to select from? The options will be based from the shell history and would be in the form of a drop down. How about this?

OrkoHunter avatar May 07 '17 08:05 OrkoHunter

I agree.

For now, the options could be

  1. Add a new command
  2. Add a command from history

Parth-Vader avatar May 07 '17 09:05 Parth-Vader