From 3f94bcb343554c17c855687480b0809e9a5cca0c Mon Sep 17 00:00:00 2001 From: oxypomme Date: Thu, 28 Mar 2024 09:13:52 +0100 Subject: [PATCH] fix(zsh): fixed fzf integration --- .fzf.zsh | 13 ------------- .zshrc | 23 +++++++++++------------ 2 files changed, 11 insertions(+), 25 deletions(-) delete mode 100644 .fzf.zsh diff --git a/.fzf.zsh b/.fzf.zsh deleted file mode 100644 index 589a424..0000000 --- a/.fzf.zsh +++ /dev/null @@ -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" diff --git a/.zshrc b/.zshrc index e126647..08fc432 100644 --- a/.zshrc +++ b/.zshrc @@ -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