Skip to content

Commit

Permalink
Ensure that fzf uses bash when running preview
Browse files Browse the repository at this point in the history
Works around this junegunn/fzf#2627

Fixes joehillen#14
  • Loading branch information
joehillen committed Oct 8, 2021
1 parent 51da0ca commit d25853e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sysz
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ while :; do
--history="$SYSZ_HISTORY" \
--prompt="Units: " \
--header '? for keybindings' \
--bind "?:preview(echo '$(_sysz_keys)')" \
--bind "ctrl-v:preview('${BASH_SOURCE[0]}' _fzf_cat {})" \
--preview="'${BASH_SOURCE[0]}' _fzf_preview {}" \
--bind "?:preview(/usr/bin/env bash echo '$(_sysz_keys)')" \
--bind "ctrl-v:preview(/usr/bin/env bash '${BASH_SOURCE[0]}' _fzf_cat {})" \
--preview="/usr/bin/env bash '${BASH_SOURCE[0]}' _fzf_preview {}" \
--preview-window=70% |
readarray -t PICKS

Expand Down

0 comments on commit d25853e

Please sign in to comment.