Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
a1c54e03
Unverified
Commit
a1c54e03
authored
Jan 22, 2023
by
Carlo Sala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(fzf): add `skip-dpkg` flag to avoid some regressions
See
https://github.com/ohmyzsh/ohmyzsh/pull/11122#issuecomment-1399607430
parent
ba8777fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
README.md
plugins/fzf/README.md
+9
-0
fzf.plugin.zsh
plugins/fzf/fzf.plugin.zsh
+2
-2
No files found.
plugins/fzf/README.md
View file @
a1c54e03
...
@@ -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
```
plugins/fzf/fzf.plugin.zsh
View file @
a1c54e03
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment