23 ms·
Wow jog is tiny: grep -a "${PWD} " ~/.zsh_history_ext | cat | cut -f1 -d"|" | tail
by aarchi 6y ago
Wow jog is tiny:
grep -a "${PWD} " ~/.zsh_history_ext | cat | cut -f1 -d"|" | tail
- axaxs 6y agoWhy does it pipe to cat?
- viraptor 6y agoMaybe instead of `grep --color=never`? (i.e. to force non-terminal behaviour) Then again, cut would do the same thing anyway.
- ngngngng 6y agoWhen I was exploring projects that did this I found an alternative that spun up a database and was literally thousands of lines of code. This seemed to fit exactly what I was looking for without insane levels of overhead.