fzf scriptrc

This commit is contained in:
Piotr Domański 2024-07-11 12:26:08 +02:00
parent 8597ff3561
commit 294380019c
2 changed files with 5 additions and 3 deletions

5
.config/scriptrc/fzf.sh Normal file
View file

@ -0,0 +1,5 @@
# fzf settings
if [ ! -z "$(which fzf 2>/dev/null)" ]; then
export FZF_DEFAULT_OPTS="--reverse --bind change:first --bind ctrl-j:down,ctrl-k:up -i --cycle --header-first --border rounded"
source <(fzf --zsh)
fi

3
.zshrc
View file

@ -207,9 +207,6 @@ source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null
bindkey '^ ' autosuggest-accept bindkey '^ ' autosuggest-accept
bindkey '^l' autosuggest-accept bindkey '^l' autosuggest-accept
# fzf settings
export FZF_DEFAULT_OPTS="--reverse --bind change:first --bind ctrl-j:down,ctrl-k:up -i --cycle --header-first --border rounded"
# exports - local bin, python, brew # exports - local bin, python, brew
export PATH="$HOME/.local/bin:$HOME/.bin:/Users/$USER/Library/Python/3.9/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/bin:/opt/homebrew/sbin:$HOME/.cargo/bin:$PATH" export PATH="$HOME/.local/bin:$HOME/.bin:/Users/$USER/Library/Python/3.9/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/bin:/opt/homebrew/sbin:$HOME/.cargo/bin:$PATH"