dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit bc9b75166e31dae65f14a71f35c7cea3c814d6f9
parent 6a47a5121349b701fa86fb7303c312b47707fac5
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon, 11 May 2026 14:00:59 +0900

zsh: enable fzf if installed

Diffstat:
M.config/zsh/.zshenv | 3+++
M.config/zsh/.zshrc | 5+++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv @@ -60,6 +60,9 @@ export P4CONFIG=.p4config export P4EDITOR=nvim export GEM_HOME="$HOME/.gem" +# fzf config. +FZF_DEFAULT_OPTS='--layout=reverse' + # Platform-specific source directory. [[ -d "$HOME/src" ]] && SRC_ROOT="$HOME/src" [[ -d "$HOME/Developer" ]] && SRC_ROOT="$HOME/Developer" diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc @@ -86,6 +86,11 @@ if [ -f "$XDG_CONFIG_HOME/zsh/functions" ]; then . "$XDG_CONFIG_HOME/zsh/functions" fi +# If fzf is installed, enable it. +if command -v fzf &> /dev/null; then + . <(fzf --zsh) +fi + # Source any machine-local config. if [[ -f "$HOME/.local/config/zsh/zshrc" ]]; then . "$HOME/.local/config/zsh/zshrc"