qfc icon indicating copy to clipboard operation
qfc copied to clipboard

ZSH, iTerm: "command not found: qfc"

Open dewey opened this issue 8 years ago • 5 comments

Hello,

I just installed qfc and added it to my zsh 5.0.5 .zshrc like that:

[[ -s "$HOME/.qfc/bin/qfc.sh" ]] && source "$HOME/.qfc/bin/qfc.sh"
qfc_quick_command 'cd' '\C-b' 'cd $0'
qfc_quick_command 'vim' '\C-p' 'vim $0'

and restarted my terminal / sourced the config file.

If I press ctrl + f the result looks like this:

~|⇒
qfc_complete:15: command not found: qfc

Is there anything I missed?

Thanks

dewey avatar Jul 27 '15 18:07 dewey

I've tried Term 3 and the default OS X terminal app with both zsh 5.1 and bash 3.1. I always get:

qfc_complete:20: command not found: qfc

☹️

lukechilds avatar Jul 07 '16 11:07 lukechilds

@dewey @lukechilds You need to add $HOME/.qfc/bin/ to your path.

desyncr avatar Oct 17 '16 14:10 desyncr

@desyncr I'm not sure what's changed since I last tried but I just tried again and it works fine now after sourcing, I don't need to add anything to my PATH.

source "$HOME/.qfc/bin/qfc.sh" is all I need.

lukechilds avatar Oct 17 '16 15:10 lukechilds

@lukechilds You are right. It's probably this.

desyncr avatar Oct 17 '16 15:10 desyncr

@desyncr Good spot 👍

@dewey @pindexis This can probably be closed.

lukechilds avatar Oct 17 '16 15:10 lukechilds