fix(zsh): fixed fzf integration
This commit is contained in:
13
.fzf.zsh
13
.fzf.zsh
@@ -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
23
.zshrc
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user