bigH / git-fuzzy

interactive `git` with the help of `fzf`
MIT License
2.31k stars 42 forks source link

add simple install script #1

Closed cody-greene closed 4 years ago

cody-greene commented 4 years ago

This is a neat project :exploding_head:. I think it could benefit from a simple install script too.

# default prefix=/usr/local 
$ ./install [<prefix>]

Replacing lib_dir="..." with sed is a bit stinky though. Perhaps a better solution is to move ./lib/ to ./lib/git-fuzzy/ and update the hard-coded path accordingly. Then we wouldn't need sed, and the current recommended usage would continue to work as well.

bigH commented 4 years ago

I don't agree with this - an install script that seds the code seems dangerous.