1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh # fzf # https://github.com/junegunn/fzf # Dependencies: # – bat (https://github.com/sharkdp/bat) # Arguments pattern=$1 :ls | grep -F "$pattern" | fzf --preview-window=down:60% --preview 'bat --style=numbers --color=always --line-range :500 {}' --prompt='(b)>' | :buffer