fix(zsh): fixed fzf integration

This commit is contained in:
oxypomme
2024-03-28 09:13:52 +01:00
parent c0a362ec70
commit 3f94bcb343
2 changed files with 11 additions and 25 deletions

23
.zshrc
View File

@@ -104,7 +104,7 @@ plugins=(
)
# zstyle ':fzf-tab:complete:tldr:argument-1' fzf-preview 'tldr $word'
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath'
zstyle ':fzf-tab:complete:cd:*' fzf-preview '/bin/eza -1 --color=always $realpath'
export ZDOTDIR=$ZSH/cache
@@ -137,7 +137,6 @@ typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
[[ ! -f "${ZSH}/custom/scripts/n.zsh" ]] || source $ZSH/custom/scripts/n.zsh # nnn config
[[ ! -f "${ZSH}/custom/scripts/i3lock.zsh" ]] || source $ZSH/custom/scripts/i3lock.zsh # i3lock
# [[ ! -f "${HOME}/.fzf.zsh" ]] || source $HOME/.fzf.zsh # nnn config
# nvm
# zstyle ':omz:plugins:nvm' autoload yes
@@ -178,13 +177,13 @@ unsetopt completeinword
HISTFILE=$HOME/.zsh_history
HISTSIZE=50000
SAVEHIST=50000
setopt INC_APPEND_HISTORY # Immediately append to history file:
setopt EXTENDED_HISTORY # Record timestamp in history:
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming history:
setopt HIST_IGNORE_DUPS # Dont record an entry that was just recorded again:
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate:
setopt HIST_FIND_NO_DUPS # Do not display a line previously found:
setopt HIST_IGNORE_SPACE # Dont record an entry starting with a space:
setopt HIST_SAVE_NO_DUPS # Dont write duplicate entries in the history file:
setopt SHARE_HISTORY # Share history between all sessions:
unsetopt HIST_VERIFY # Execute commands using history (e.g.: using !$) immediatel:
setopt INC_APPEND_HISTORY # Immediately append to history file
setopt EXTENDED_HISTORY # Record timestamp in history
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming history
setopt HIST_IGNORE_DUPS # Dont record an entry that was just recorded again
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate
setopt HIST_FIND_NO_DUPS # Do not display a line previously found
setopt HIST_IGNORE_SPACE # Dont record an entry starting with a space
setopt HIST_SAVE_NO_DUPS # Dont write duplicate entries in the history file
setopt SHARE_HISTORY # Share history between all sessions
unsetopt HIST_VERIFY # Execute commands using history (e.g.: using !$) immediatel