mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
feat(fzf): add skip-dpkg
flag to avoid some regressions
See https://github.com/ohmyzsh/ohmyzsh/pull/11122#issuecomment-1399607430
This commit is contained in:
parent
ba8777fc30
commit
a1c54e03f9
2 changed files with 11 additions and 2 deletions
|
@ -50,3 +50,12 @@ Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C):
|
|||
```zsh
|
||||
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,7 +60,7 @@ function fzf_setup_using_base_dir() {
|
|||
|
||||
|
||||
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
|
||||
return 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue