Skip to content

Commit

Permalink
Ensure that fzf preview commands are executed in bash
Browse files Browse the repository at this point in the history
All preview commands are written in bash now. fzf, however, uses the
shell defined in $SHELL to run the preview commands. We have to force
this to bash within forgit in order to not get any errors on different
default shells.
  • Loading branch information
carlfriedrich committed Nov 17, 2022
1 parent 0820811 commit 26f0f5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/git-forgit
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# This gives users the choice to set aliases inside of their git config instead
# of their shell config if they prefer.

# Set shell for fzf preview commands
SHELL=/bin/bash

FORGIT_FZF_DEFAULT_OPTS="
$FZF_DEFAULT_OPTS
--ansi
Expand Down

0 comments on commit 26f0f5c

Please sign in to comment.