[scripts] make visman work on macOS

This commit is contained in:
Dmytro Meleshko 2020-04-18 21:02:47 +03:00
parent 361ef09ae8
commit 589900c1d6

View file

@ -1,3 +1,4 @@
#!/bin/sh
man $(apropos '' | fzf --no-multi --tiebreak=begin | sed -n 's/^\([^ ]\+\) (\([^)]\+\)).*$/\2 \1/p')
# https://superuser.com/a/207474
man $(apropos . | fzf --no-multi --tiebreak=begin | sed -n 's/^\([^ ]\+\) \?(\([^)]\+\)).*$/\2 \1/p')