msprev / fzf-bibtex

a BibTeX source for fzf
BSD 3-Clause "New" or "Revised" License
129 stars 15 forks source link

Intalling with Go issues #23

Closed santiyounger closed 3 years ago

santiyounger commented 3 years ago

Hi, thanks for making this, it looks great.

I'm having trouble installing it with go

I installed all the dependancies

I manage to make these following commands work, but as soon as I close my terminal they are no longer installed

go get github.com/msprev/fzf-bibtex/cmd/bibtex-ls
go install github.com/msprev/fzf-bibtex/cmd/bibtex-ls
go install github.com/msprev/fzf-bibtex/cmd/bibtex-markdown
go install github.com/msprev/fzf-bibtex/cmd/bibtex-cite

in my case I need to install them again in every new instance of a new terminal

after trying to run the example bibtex-ls references.bib | fzf --multi --ansi I get

bash: bibtex-ls: command not found

I don't have experience installing with go, I'm used to installing from the AUR

I must be missing something basic, I did a lot of research trying to find why it might not be working, but not sure what it might be, would appreciate any help in the right direction

I've set this up as explained here

export GOPATH=$HOME/gocode
export PATH=$PATH:$GOPATH/bin

I'm using linux manjaro with Awesome Windows Manager

thanks!

santiyounger commented 3 years ago

I finally achieved it thanks to this other issue https://github.com/msprev/fzf-bibtex/issues/18

thank you for the clear instructions in there:

I simply added the following to my .bashrc

export PATH=$PATH:/home/my-user-name/go/bin

That was it, from there go install worked without any issues

Like expected this wasn't an issue with fzf-bibtex

Thanks