Fix fzf commands

This commit is contained in:
Fabio Scotto di Santolo
2025-08-18 14:56:07 +02:00
parent f9a4d77bb6
commit 02383153b6
2 changed files with 3 additions and 15 deletions

View File

@@ -9,9 +9,9 @@ export HELPDIR=/usr/share/zsh/"${ZSH_VERSION}"/help
export MISE_HOME=$HOME/.local/share/mise/installs export MISE_HOME=$HOME/.local/share/mise/installs
# fzf # 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_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 Catppuccin Mocha theme for FZF
export FZF_DEFAULT_OPTS=" \ export FZF_DEFAULT_OPTS=" \
--height 60% --layout=reverse --border \ --height 60% --layout=reverse --border \

View File

@@ -1,6 +1,3 @@
# read second
export ZSH_HOME="$HOME/.zsh" export ZSH_HOME="$HOME/.zsh"
# source global shell alias & variables files # source global shell alias & variables files
@@ -46,16 +43,7 @@ autoload run-help
source <(fzf --zsh) # allow for fzf history widget source <(fzf --zsh) # allow for fzf history widget
# binds # binds
bindkey "^a" beginning-of-line bindkey -e
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
# set up prompt # set up prompt
NEWLINE=$'\n' NEWLINE=$'\n'