3if ! which hyperfine > /dev/null 2>&1; then
4 echo "'hyperfine' does not seem to be installed."
5 echo "You can get it here: https://github.com/sharkdp/hyperfine"
9SRC="test-src/jquery-3.3.1.js"
12cmd_bat="bat --style=full --color=always --paging=never '$SRC'"
13cmd_bat_simple="bat --plain --wrap=never --tabs=0 --color=always --paging=never '$SRC'"
14cmd_pygmentize="pygmentize -g '$SRC'"
15cmd_highlight="highlight -O truecolor '$SRC'"
16cmd_ccat="ccat --color=always '$SRC'"
17cmd_source_highlight="source-highlight --failsafe --infer-lang -f esc -i '$SRC'"
18cmd_hicat="hicat '$SRC'"
19cmd_coderay="coderay '$SRC'"
20cmd_rouge="rougify '$SRC'"
28 "$cmd_source_highlight" \
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list