From 02383153b65e5ecd9aca8b3a6def3be9019c295a Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Mon, 18 Aug 2025 14:56:07 +0200 Subject: [PATCH] Fix fzf commands --- zsh/.zshenv | 4 ++-- zsh/.zshrc | 14 +------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/zsh/.zshenv b/zsh/.zshenv index cb9ec9a..49107ca 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -9,9 +9,9 @@ export HELPDIR=/usr/share/zsh/"${ZSH_VERSION}"/help export MISE_HOME=$HOME/.local/share/mise/installs # fzf -export FZF_DEFAULT_COMMAND="fdfind --hidden --type file --strip-cwd-prefix --exclude .git" +export FZF_DEFAULT_COMMAND="fd --hidden --type file --strip-cwd-prefix --exclude .git" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" -export FZF_ALT_C_COMMAND="fdfind --hidden --type directory --strip-cwd-prefix --exclude .git" +export FZF_ALT_C_COMMAND="fd --hidden --type directory --strip-cwd-prefix --exclude .git" # Export Catppuccin Mocha theme for FZF export FZF_DEFAULT_OPTS=" \ --height 60% --layout=reverse --border \ diff --git a/zsh/.zshrc b/zsh/.zshrc index d8a69bb..2aca5ac 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,6 +1,3 @@ - -# read second - export ZSH_HOME="$HOME/.zsh" # source global shell alias & variables files @@ -46,16 +43,7 @@ autoload run-help source <(fzf --zsh) # allow for fzf history widget # binds -bindkey "^a" beginning-of-line -bindkey "^e" end-of-line -bindkey "^k" kill-line -bindkey "^j" backward-word -bindkey "^k" forward-word -bindkey "^H" backward-kill-word -# ctrl J & K for going up and down in prev commands -bindkey "^J" history-search-forward -bindkey "^K" history-search-backward -bindkey '^R' fzf-history-widget +bindkey -e # set up prompt NEWLINE=$'\n'