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

Top commands one-liner #926

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Top commands one-liner #926

merged 2 commits into from
Aug 9, 2024

Conversation

phoenixr-codes
Copy link
Contributor

This pull request adds a script containing a one-liner that can be used to get a table containing the top 5 used commands by using the history file

@fdncred
Copy link
Collaborator

fdncred commented Aug 5, 2024

This command works but it should be known that it only supports history.txt and not history.sqlite3

@phoenixr-codes
Copy link
Contributor Author

I've edited the comment and improved the command to only work when $nu.history-enabled.

@fdncred fdncred merged commit e4d721e into nushell:main Aug 9, 2024
1 check failed
@fdncred
Copy link
Collaborator

fdncred commented Aug 9, 2024

Thanks

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

Successfully merging this pull request may close these issues.

2 participants