blob: f8fb9a0d44a3dc73030ee3e5912fa0e6172cb051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
echo $PATH \
| sed "s/:/\n/g" \
| while read d; do ls -1 $d 2>/dev/null; done \
| sort \
| uniq \
| fzf \
--reverse \
--height "50%" \
--preview="man {}" \
--bind "ctrl-/:change-preview-window(90%|down|hidden|)" \
--bind "alt-1:change-preview:man {}" \
--bind "alt-2:change-preview:{} -h" \
--bind "alt-3:change-preview:{} --help" \
--bind "pgup:preview-page-up" \
--bind "pgdn:preview-page-down" \
--bind "backward-eof:abort"
|