mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-01-21 09:59:06 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
3 lines
254 B
Nu
3 lines
254 B
Nu
# Evaluates the top 5 most used commands present in `nushell/history.txt`.
|
|
if $nu.history-enabled { open $nu.history-path | lines | uniq --count | sort-by --reverse count | first 5 | rename command amount } else { print --stderr "History is disabled!" }
|