4 ms·
https://github.com/natethinks/jog/ https://github.com/natethinks/jog/ I'm not sure why this isn't a part of zsh already, but if you want to see the last few co
by ngngngng 6y ago
https://github.com/natethinks/jog/ https://github.com/natethinks/jog/
I'm not sure why this isn't a part of zsh already, but if you want to see the last few commands you ran in the current directory, that little utility will do that for you. Great for reminding yourself what you did last time you were in a directory.
- aarchi 6y agoWow 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.
- oweiler 6y agomcfly is a nice alternative https://github.com/cantino/mcfly https://github.com/cantino/mcfly