New approach to dotfiles handling.

This commit is contained in:
Bartek Stalewski 2022-03-30 11:27:23 +02:00
parent af2d271f03
commit 74ec21fafd
5 changed files with 12 additions and 12 deletions

View file

@ -1,13 +1,13 @@
source $XDG_CONFIG_HOME/fzf/fzf.zsh
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.local/settings/fd'
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.local/settings/fd'
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.local/config/fd'
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.local/config/fd'
export FZF_DEFAULT_OPTS="--multi -e --ansi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=Monokai\ Extended\ Bright {}'"
export FZF_CTRL_R_OPTS="-e --ansi --layout=reverse --preview=''"
_fzf_compgen_path() {
fd -H -L --ignore-file ~/.local/settings/fd . "$1"
fd -H -L --ignore-file ~/.local/config/fd . "$1"
}
_fzf_compgen_dir() {
fd -H -L --ignore-file ~/.local/settings/fd --type d . "$1"
fd -H -L --ignore-file ~/.local/config/fd --type d . "$1"
}
# heavily inspired (and sometimes stolen from): https://github.com/wfxr/forgit.git