Switch back to macOS.
This commit is contained in:
parent
f8866a9eca
commit
e819a06cda
137 changed files with 192 additions and 23 deletions
17
_linux/_cli/zsh/fzf.zsh
Normal file
17
_linux/_cli/zsh/fzf.zsh
Normal file
|
@ -0,0 +1,17 @@
|
|||
if [[ $(command -v fzf) ]]; then
|
||||
case $(lsb_release -si) in
|
||||
Gentoo) source /usr/share/zsh/site-functions/_fzf ;;
|
||||
VoidLinux) source /usr/share/fzf/completion.zsh ;;
|
||||
esac
|
||||
source /usr/share/fzf/key-bindings.zsh
|
||||
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/config/fd . "$1"
|
||||
}
|
||||
_fzf_compgen_dir() {
|
||||
fd -H -L --ignore-file ~/.local/config/fd --type d . "$1"
|
||||
}
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue