fzf: add check for OpenSUSE and OpenBSD packages (#9327)
parent
f9f45ca222
commit
7d73908223
2 changed files with 124 additions and 52 deletions
@ -1,33 +1,52 @@ |
|||||||
# fzf |
# fzf |
||||||
|
|
||||||
This plugin enables [junegunn's fzf](https://github.com/junegunn/fzf) fuzzy auto-completion and key bindings |
This plugin tries to find [junegunn's fzf](https://github.com/junegunn/fzf) based on where |
||||||
|
it's been installed, and enables its fuzzy auto-completion and key bindings. |
||||||
|
|
||||||
To use it, add `fzf` to the plugins array in your zshrc file: |
To use it, add `fzf` to the plugins array in your zshrc file: |
||||||
|
|
||||||
```zsh |
```zsh |
||||||
plugins=(... fzf) |
plugins=(... fzf) |
||||||
``` |
``` |
||||||
|
|
||||||
## Settings |
## Settings |
||||||
|
|
||||||
Add these before the `plugins=()` line in your zshrc file: |
All these settings should go in your zshrc file, before Oh My Zsh is sourced. |
||||||
|
|
||||||
|
### `FZF_BASE` |
||||||
|
|
||||||
|
Set to fzf installation directory path: |
||||||
|
|
||||||
|
```zsh |
||||||
|
export FZF_BASE=/path/to/fzf/install/dir |
||||||
|
``` |
||||||
|
|
||||||
|
### `FZF_DEFAULT_COMMAND` |
||||||
|
|
||||||
|
Set default command to use when input is tty: |
||||||
|
|
||||||
```zsh |
```zsh |
||||||
# Set fzf installation directory path |
export FZF_DEFAULT_COMMAND='<your fzf default commmand>' |
||||||
# export FZF_BASE=/path/to/fzf/install/dir |
``` |
||||||
|
|
||||||
|
If not set, the plugin will try to set it to these, in the order in which they're found: |
||||||
|
|
||||||
# Uncomment to set the FZF_DEFAULT_COMMAND |
- [`rg`](https://github.com/BurntSushi/ripgrep) |
||||||
# export FZF_DEFAULT_COMMAND='<your fzf default commmand>' |
- [`fd`](https://github.com/sharkdp/fd) |
||||||
|
- [`ag`](https://github.com/ggreer/the_silver_searcher) |
||||||
|
|
||||||
# Uncomment the following line to disable fuzzy completion |
### `DISABLE_FZF_AUTO_COMPLETION` |
||||||
# DISABLE_FZF_AUTO_COMPLETION="true" |
|
||||||
|
|
||||||
# Uncomment the following line to disable key bindings (CTRL-T, CTRL-R, ALT-C) |
Set whether to load fzf auto-completion: |
||||||
# DISABLE_FZF_KEY_BINDINGS="true" |
|
||||||
|
```zsh |
||||||
|
DISABLE_FZF_AUTO_COMPLETION="true" |
||||||
``` |
``` |
||||||
|
|
||||||
| Setting | Example value | Description | |
### `DISABLE_FZF_KEY_BINDINGS` |
||||||
|-----------------------------|----------------------------|-------------------------------------------------------------| |
|
||||||
| FZF_BASE | `/path/to/fzf/install/dir` | Set fzf installation directory path (**export**) | |
Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C): |
||||||
| FZF_DEFAULT_COMMAND | `fd --type f` | Set default command to use when input is tty (**export**) | |
|
||||||
| DISABLE_FZF_AUTO_COMPLETION | `true` | Set whether to load fzf auto-completion | |
```zsh |
||||||
| DISABLE_FZF_KEY_BINDINGS | `true` | Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C) | |
DISABLE_FZF_KEY_BINDINGS="true" |
||||||
|
``` |
||||||
|
|||||||
Loading…
Reference in new issue