4 ms·
> The bat command also allows me to search during output (only if the output is longer than the screen height) using the / key binding (similarly to less search
by radarsat1 8y ago
> The bat command also allows me to search during output (only if the output is longer than the screen height) using the / key binding (similarly to less searching).
You can do this with `less -F <file>`. It will show the file on the screen like `cat` unless it is longer than one screen, then it will go into paging mode and allow search with `/`.
Side note, how do you make his nice-looking prompt?
- mlevental 8y agoyou don't need the -F do you? unless I'm missing something you're saying about less
- another-cuppa 8y agoThat makes it exit immediately like cat.
- mlevental 8y agooh. but why would you want to? even for a 1 page file i still want to / most of the time
- mahesh_rm 8y agoOh my zsh, powerlevel9k theme, iterm2 if you are on a mac.
- Rynant 8y agoHis prompt is the oh-my-zsh theme "agnoster". https://github.com/robbyrussell/oh-my-zsh/wiki/Themes https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
- slaiyer 8y agoless +F