#fzf with Warp

3 messages · Page 1 of 1 (latest)

silver crane
#

Does fzf work with fish and warp ? I did setup fzf following the insall on fzf and trying its commands but nothing works

toxic palmBOT
#

Hi @silver crane. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information from the provided knowledge sources, fzf is currently not compatible with Warp. This has been discussed in several GitHub issues, such as Issue #3645 (https://github.com/warpdotdev/Warp/issues/3645) and Issue #1647 (https://github.com/warpdotdev/Warp/issues/1647).

However, there is a workaround to disable fzf specifically for Warp using conditional statements in your shell configuration files. Here are the conditionals for Bash, Zsh, and Fish:

For Bash and Zsh:

if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
    # fzf code
fi

For Fish:

if test "$TERM_PROGRAM" != "WarpTerminal"
    # fzf code
end

As for using Warp with the Fish shell, Warp does support it. You can set Fish as your default shell in Warp's session settings (Settings > Features > Session). If you haven't installed Fish yet, you can do so using Homebrew with the command brew install fish, or by downloading the installer at fishshell.com (https://fishshell.com/). After installing, you can set Fish as your default shell using the following commands:

echo $(which fish) | sudo tee -a /etc/shells
chsh -s $(which fish)

Please note that the location of Fish depends on how it was installed. You can identify where Fish is installed by running echo $(which fish).

Sources:


Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: