Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
f56b6788
Unverified
Commit
f56b6788
authored
Oct 15, 2019
by
Marc Cornellà
Committed by
GitHub
Oct 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fzf: check for dpkg before checking for fzf in debian
Fixes #8253 Co-authored-by:
Mariusz B
<
mb@binary-offensive.com
>
parent
52f58785
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fzf.plugin.zsh
plugins/fzf/fzf.plugin.zsh
+6
-6
No files found.
plugins/fzf/fzf.plugin.zsh
View file @
f56b6788
function
setup_using_base_dir
()
{
function
setup_using_base_dir
()
{
# Declare all variables local not no mess with outside env in any way
# Declare all variables local not no mess with outside env in any way
local
fzf_base
local
fzf_base
local
fzf_shell
local
fzf_shell
local
fzfdirs
local
fzfdirs
local dir
local dir
test
-d
"
${
FZF_BASE
}
"
&&
fzf_base
=
"
${
FZF_BASE
}
"
test
-d
"
${
FZF_BASE
}
"
&&
fzf_base
=
"
${
FZF_BASE
}
"
...
@@ -58,7 +58,7 @@ function setup_using_base_dir() {
...
@@ -58,7 +58,7 @@ function setup_using_base_dir() {
function
setup_using_debian_package
()
{
function
setup_using_debian_package
()
{
dpkg
-s
fzf &> /dev/null
((
$+
command
[
dpkg]
))
&&
dpkg
-s
fzf &> /dev/null
if
((
$?
))
;
then
if
((
$?
))
;
then
# Either not a debian based distro, or no fzf installed. In any case skip ahead
# Either not a debian based distro, or no fzf installed. In any case skip ahead
return
1
return
1
...
...
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