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

View File

@@ -1,13 +0,0 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */home/sublet/.fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}/home/sublet/.fzf/bin"
fi
# Auto-completion
# ---------------
source "/home/sublet/.fzf/shell/completion.zsh"
# Key bindings
# ------------
# source "/home/sublet/.fzf/shell/key-bindings.zsh"

23
.zshrc
View File

@@ -104,7 +104,7 @@ plugins=(
) )
# zstyle ':fzf-tab:complete:tldr:argument-1' fzf-preview 'tldr $word' # 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 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/n.zsh" ]] || source $ZSH/custom/scripts/n.zsh # nnn config
[[ ! -f "${ZSH}/custom/scripts/i3lock.zsh" ]] || source $ZSH/custom/scripts/i3lock.zsh # i3lock [[ ! -f "${ZSH}/custom/scripts/i3lock.zsh" ]] || source $ZSH/custom/scripts/i3lock.zsh # i3lock
# [[ ! -f "${HOME}/.fzf.zsh" ]] || source $HOME/.fzf.zsh # nnn config
# nvm # nvm
# zstyle ':omz:plugins:nvm' autoload yes # zstyle ':omz:plugins:nvm' autoload yes
@@ -178,13 +177,13 @@ unsetopt completeinword
HISTFILE=$HOME/.zsh_history HISTFILE=$HOME/.zsh_history
HISTSIZE=50000 HISTSIZE=50000
SAVEHIST=50000 SAVEHIST=50000
setopt INC_APPEND_HISTORY # Immediately append to history file: setopt INC_APPEND_HISTORY # Immediately append to history file
setopt EXTENDED_HISTORY # Record timestamp in history: setopt EXTENDED_HISTORY # Record timestamp in history
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming 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_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_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_FIND_NO_DUPS # Do not display a line previously found
setopt HIST_IGNORE_SPACE # Dont record an entry starting with a space: 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 HIST_SAVE_NO_DUPS # Dont write duplicate entries in the history file
setopt SHARE_HISTORY # Share history between all sessions: setopt SHARE_HISTORY # Share history between all sessions
unsetopt HIST_VERIFY # Execute commands using history (e.g.: using !$) immediatel: unsetopt HIST_VERIFY # Execute commands using history (e.g.: using !$) immediatel