feat: add default fzf options and source fzf integration

This commit is contained in:
Seymur Bagirov 2024-08-20 05:31:52 +04:00
parent f5c2ff30a0
commit d34ed46d20
2 changed files with 10 additions and 1 deletions

View File

@ -78,6 +78,7 @@ mkcdir ()
# fzf + fd # fzf + fd
export FZF_DEFAULT_COMMAND="fd . $HOME" export FZF_DEFAULT_COMMAND="fd . $HOME"
export FZF_DEFAULT_OPTS="--preview 'bat --style=numbers --color=always --line-range :500 {}'"
_check_hidden_arg(){ _check_hidden_arg(){
if [[ "$1" = "--hidden" ]]; then if [[ "$1" = "--hidden" ]]; then

View File

@ -7,6 +7,9 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
fi fi
# Created by newuser for 5.9 # Created by newuser for 5.9
# my alliases are in ~/.profile so this just sources it # my alliases are in ~/.profile so this just sources it
[[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile' [[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'
@ -43,6 +46,7 @@ source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
compdef _dotnet_zsh_complete dotnet compdef _dotnet_zsh_complete dotnet
source <(fzf --zsh)
# aws cli completion for zsh # aws cli completion for zsh
autoload bashcompinit && bashcompinit autoload bashcompinit && bashcompinit
@ -70,8 +74,12 @@ export PATH="$HOME/go/bin:$PATH"
# bun completions # bun completions
[ -s "/home/themystery/.bun/_bun" ] && source "/home/themystery/.bun/_bun" [ -s "/home/themystery/.bun/_bun" ] && source "/home/themystery/.bun/_bun"
# opam source
[[ ! -r /home/themystery/.opam/opam-init/init.zsh ]] || source /home/themystery/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
# bun # bun
export BUN_INSTALL="$HOME/.bun" export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH" export PATH="$BUN_INSTALL/bin:$PATH"
export FP='fzf --preview "bat --style=numbers --color=always --line-range :500 {}"' export FP='fzf --preview="bat --style=numbers --color=always --line-range :500 {}"'