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
ba8777fc
Unverified
Commit
ba8777fc
authored
Jan 21, 2023
by
Yuxin Wu
Committed by
GitHub
Jan 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(fzf): speed up startup on debian (#11122)
parent
bf57b4ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
fzf.plugin.zsh
plugins/fzf/fzf.plugin.zsh
+10
-2
No files found.
plugins/fzf/fzf.plugin.zsh
View file @
ba8777fc
...
...
@@ -60,8 +60,8 @@ function fzf_setup_using_base_dir() {
function
fzf_setup_using_debian
()
{
if
((
!
$+
commands[dpkg]
))
||
!
dpkg
-s
fzf &>/dev/null
;
then
#
Either not a debian based distro, or no fzf installed
if
((
!
$+
commands[dpkg]
))
;
then
#
Not a debian based distro
return
1
fi
...
...
@@ -72,11 +72,19 @@ function fzf_setup_using_debian() {
case
$PREFIX
in
*
com.termux
*
)
if
[[
!
-f
"
${
PREFIX
}
/bin/fzf"
]]
;
then
# fzf not installed
return
1
fi
# Support Termux package
completions
=
"
${
PREFIX
}
/share/fzf/completion.zsh"
key_bindings
=
"
${
PREFIX
}
/share/fzf/key-bindings.zsh"
;;
*
)
if
[[
!
-f
/usr/bin/fzf
]]
;
then
# fzf not installed
return
1
fi
# Determine completion file path: first bullseye/sid, then buster/stretch
completions
=
"/usr/share/doc/fzf/examples/completion.zsh"
[[
-f
"
$completions
"
]]
||
completions
=
"/usr/share/zsh/vendor-completions/_fzf"
...
...
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