feat(fzf): add `skip-dpkg` flag to avoid some regressions

parent ba8777fc
...@@ -50,3 +50,12 @@ Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C): ...@@ -50,3 +50,12 @@ Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C):
```zsh ```zsh
DISABLE_FZF_KEY_BINDINGS="true" DISABLE_FZF_KEY_BINDINGS="true"
``` ```
### Skip `dpkg` loading
If you have `dpkg` available in your `$PATH` but you don't want to load `fzf` from there, and facing some
issues, you can define this option before loading `oh-my-zsh` in order to skip that loading:
```zsh
zstyle ':omz:plugins:fzf' skip-dpkg yes
```
...@@ -60,8 +60,8 @@ function fzf_setup_using_base_dir() { ...@@ -60,8 +60,8 @@ function fzf_setup_using_base_dir() {
function fzf_setup_using_debian() { function fzf_setup_using_debian() {
if (( ! $+commands[dpkg] )); then if (( ! $+commands[dpkg] )) || zstyle -t ':omz:plugins:fzf' skip-dpkg; then
# Not a debian based distro # Not a debian based distro
return 1 return 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment