Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command History #10

Open
Glavin001 opened this issue Oct 22, 2014 · 5 comments
Open

Command History #10

Glavin001 opened this issue Oct 22, 2014 · 5 comments
Assignees
Milestone

Comments

@Glavin001
Copy link
Owner

No description provided.

@Glavin001
Copy link
Owner Author

Build libedit or readline support into your shell.

From http://stackoverflow.com/a/2649756/2578205

@Frozenfire92
Copy link
Collaborator

I was thinking it would be cool to have history that kept stats of your most used commands. That way you could have a most recent history as well as your most used commands at your fingertips. These stats could also be used to improve #9

@Glavin001
Copy link
Owner Author

Ooh I like that idea. History stats would be sweet!
And @valencik and I were talking about more data for each history entry, such as the environment variables, current-working-directory, timestamp, and also merging histories between multiple instances of Shells (central database of history?).

@Glavin001
Copy link
Owner Author

gnu readline: How to keep a history list of entered command lines: http://cc.byexamples.com/2008/06/13/gnu-readline-how-to-keep-a-history-list-of-entered-command-lines/

@Glavin001
Copy link
Owner Author

Readline is annoying. The history sometimes breaks prompt..

Reproduce:

pwd
ls
ls -la
grep
<UP ARROW>grep
<UP ARROW>ls -la
<DOWN ARROW>ls -la            grep

It seems to be always a fixed whitespace. Not sure if it's a buffer problem; on our end; readline.. gah.

/cc @DylanYoung, I've assigned this to you if you'd like to take a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants