summaryrefslogtreecommitdiff
path: root/plugins/fzf/fzf.plugin.zsh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2019-10-21 16:01:02 -0600
committerTuowen Zhao <ztuowen@gmail.com>2019-10-21 16:01:02 -0600
commit2e9fe98b8a9fe21b982e719e129678dede63771e (patch)
treee1dd9634ace0de1c752bddcbc67a998b7d73d40b /plugins/fzf/fzf.plugin.zsh
parent112a85697481cae663ff281b74fdc1f72a67b294 (diff)
parent534ec60bfd14ee640076c7594ee4fa723fafd1b1 (diff)
downloadzsh-2e9fe98b8a9fe21b982e719e129678dede63771e.tar.gz
zsh-2e9fe98b8a9fe21b982e719e129678dede63771e.tar.bz2
zsh-2e9fe98b8a9fe21b982e719e129678dede63771e.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/fzf/fzf.plugin.zsh')
-rw-r--r--plugins/fzf/fzf.plugin.zsh12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh
index 646148297..fe471a363 100644
--- a/plugins/fzf/fzf.plugin.zsh
+++ b/plugins/fzf/fzf.plugin.zsh
@@ -1,9 +1,9 @@
function setup_using_base_dir() {
- # Declare all variables local not no mess with outside env in any way
- local fzf_base
- local fzf_shell
- local fzfdirs
- local dir
+ # Declare all variables local not no mess with outside env in any way
+ local fzf_base
+ local fzf_shell
+ local fzfdirs
+ local dir
test -d "${FZF_BASE}" && fzf_base="${FZF_BASE}"
@@ -58,7 +58,7 @@ function setup_using_base_dir() {
function setup_using_debian_package() {
- dpkg -s fzf &> /dev/null
+ (( $+commands[dpkg] )) && dpkg -s fzf &> /dev/null
if (( $? )); then
# Either not a debian based distro, or no fzf installed. In any case skip ahead
return 1