Zplug: Fail install fzf-bin from gh-r with aliased grep

Created on 3 Jun 2017  路  3Comments  路  Source: zplug/zplug

  • Type:

    • [x] Bug
    • [ ] Enhancement
    • [ ] Feature Request
    • [ ] Question
  • zplug --version: 2.4.1

  • zsh --version: zsh 5.3.1 (x86_64-unknown-linux-gnu)
  • uname -a: Linux vagrant-ubuntu-trusty-64 3.13.0-86-generic #131-Ubuntu SMP Thu May 12 23:33:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Minimal zshrc (with less than 30 lines)

alias grep='grep -n'

source $ZPLUG_HOME/init.zsh

zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:"fzf"

zplug check || zplug install
zplug load

Step to reproduce

  1. Set alias grep as grep -n (--line-number)
  2. Start to install fzf-bin from gh-r
  3. Zplug will report Failed to install junegunn/fzf-bin

Most helpful comment

This one works fine (maybe even without rename-to:fzf:)

zplug "junegunn/fzf", from:github, as:command, rename-to:fzf, hook-build:"./install --all"

All 3 comments

have this issue fixed?

This one works fine (maybe even without rename-to:fzf:)

zplug "junegunn/fzf", from:github, as:command, rename-to:fzf, hook-build:"./install --all"

I use a variation of the above:

zplug "junegunn/fzf", hook-build:"./install --bin", use:"shell/*.zsh", defer:2

if zplug check junegunn/fzf; then
    FZF_DEFAULT_OPTS="--multi --reverse --inline-info"
    PATH=$HOME/.zplug/repos/junegunn/fzf/bin:$PATH
fi

This lets me _not_ update ~/.zshrc via fzf hook-build (as its tracked elsewhere) and still customize fzf behavior.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kdheepak picture kdheepak  路  10Comments

tangkunyin picture tangkunyin  路  10Comments

eru picture eru  路  4Comments

asymmetric picture asymmetric  路  11Comments

felixjung picture felixjung  路  7Comments