OrkoHunter / keep

A Meta CLI toolkit : Personal shell command keeper and snippets manager
MIT License
599 stars 54 forks source link

Using `~/.zsh_history` to keep commands #3

Open TwistingTwists opened 8 years ago

TwistingTwists commented 8 years ago

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?)

OrkoHunter commented 8 years ago

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

OrkoHunter commented 8 years ago

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

Parth-Vader commented 7 years ago

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

OrkoHunter commented 7 years ago

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

OrkoHunter commented 7 years ago

@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?

Parth-Vader commented 7 years ago

I agree.

For now, the options could be 1) Add a new command 2) Add a command from history