FZF_CTRL_T_OPTS evaluates IF statement with system default shell #4108
-
Beta Was this translation helpful? Give feedback.
Answered by
LangLangBart
Nov 22, 2024
Replies: 1 comment 1 reply
-
Note fzf runs the command with Try assigning fzf --bind 'start:become:echo zsh $ZSH_VERSION fish $FISH_VERSION bash $BASH_VERSION'
# zsh 5.9 fish bash
SHELL=$(which fish)
fzf --bind 'start:become:echo zsh $ZSH_VERSION fish $FISH_VERSION bash $BASH_VERSION'
# zsh fish 3.7.1 bash Alternatively, you can pass the fzf --with-shell="$(which zsh) -c" \
--bind 'start:become:echo zsh $ZSH_VERSION fish $FISH_VERSION bash $BASH_VERSION'
# zsh 5.9 fish bash
fzf --with-shell="$(which fish) -c" \
--bind 'start:become:echo zsh $ZSH_VERSION fish $FISH_VERSION bash $BASH_VERSION'
# zsh fish 3.7.1 bash
fzf --with-shell="$(which bash) -c" \
--bind 'start:become:echo zsh $ZSH_VERSION fish $FISH_VERSION bash $BASH_VERSION'
# zsh fish bash 5.2.37(1)-release Footnotes |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lukejanicke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note
fzf runs the command with
$SHELL -c
ifSHELL
is set, otherwise withsh -c
Try assigning
SHELL
in yourzsh
orfish
config file to see if it works for you.Alternatively, you can pass the
--with-shell=STR
1 flag tofzf
.