fzf default command

This commit is contained in:
dl92
2025-12-07 23:32:51 +00:00
parent 7113a95aad
commit 2e1b4ec107
2 changed files with 8 additions and 4 deletions

View File

@@ -28,8 +28,8 @@ if [[ -n "$BASH_VERSION" ]]; then
fi fi
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000 HISTSIZE=10000
HISTFILESIZE=2000 HISTFILESIZE=20000
#activate python #activate python
@@ -38,7 +38,7 @@ HISTFILESIZE=2000
# Set up fzf key bindings and fuzzy completion # Set up fzf key bindings and fuzzy completion
eval "$(fzf --bash)" eval "$(fzf --bash)"
FZF_DEFAULT_COMMAND='fd --type f | fzf --print0 | xargs -0 -o vim' FZF_DEFAULT_COMMAND="rg --files --hidden | fzf --bind 'enter:become(vim {+})'"
# Added by LM Studio CLI tool (lms) # Added by LM Studio CLI tool (lms)
export PATH="$PATH:$HOME/.lmstudio/bin" export PATH="$PATH:$HOME/.lmstudio/bin"

View File

@@ -1,10 +1,14 @@
# some more ls aliases # some more ls aliases
# Common aliases # Common aliases
alias rg='rgrep'
alias fo='open "$(fzf)"' alias fo='open "$(fzf)"'
alias fp='fzf --preview "~/code/scripts/system/fzftools/fzf-preview.sh {}"' alias fp='fzf --style full --preview "~/code/scripts/system/fzftools/fzf-preview.sh {}" --bind "focus:transform-header:file --brief {}"'
alias ll='ls -alF' alias ll='ls -alF'
alias gs='git status' alias gs='git status'
alias lz='lazygit' alias lz='lazygit'
alias nvim='nvim.appimage' alias nvim='nvim.appimage'
alias dmp3='yt-dlp -x --audio-format mp3 --audio-quality 0 --embed-thumbnail' alias dmp3='yt-dlp -x --audio-format mp3 --audio-quality 0 --embed-thumbnail'