Recently Written · git

sbm

dmenu bookmarks. Instantly fuzzy search thousands of bookmarks and plumb them. LOOKING FOR SUCKLESS SOFTWARE EDITION? GO TO sbm-suckless INSTEAD

git clone https://github.com/equwal/sbm

Log | Files | Refs


contrib/windows/fzf (891 bytes)

1 #!/bin/sh
2 
3 # fzf: run fzf.exe, the Windows build of fzf, under Cygwin.
4 #
5 # The fzf package of Cygwin is version 0.11 from 2016. That version has no
6 # --preview and no --expect, and bm uses both. The installer puts fzf.exe
7 # in ../libexec/sbm. Without the installer, this script uses the fzf.exe in
8 # PATH, for example from "winget install junegunn.fzf".
9 #
10 # MSYS=enable_pcon: when MSYS does not contain enable_pcon, fzf.exe in mintty
11 # starts itself again through a proxy for MSYS2. Cygwin does not need the
12 # proxy, because Cygwin gives native programs a pseudo console. Cygwin
13 # ignores MSYS.
14 #
15 # SHELL: fzf.exe runs --preview and --bind commands with $SHELL. When SHELL
16 # is not set, fzf.exe uses cmd.exe, and the bm preview fails.
17 
18 exe=${0%/*}/../libexec/sbm/fzf.exe
19 [ -x "$exe" ] || exe=fzf.exe
20 MSYS=${MSYS:+$MSYS }enable_pcon
21 SHELL=${SHELL:-/bin/sh}
22 export MSYS SHELL
23 exec "$exe" "$@"