fishworks / gofish

Keep your fish fresh! :tropical_fish:
https://gofi.sh
Apache License 2.0
811 stars 64 forks source link

feat: basic auth credentials from netrc #191

Open stuart-warren opened 3 years ago

stuart-warren commented 3 years ago

add basic auth credentials to request for food packages if present in users netrc file

add 'Accept: application/octet-stream' header to permit working through github api

ref: fishworks#190

bacongobbler commented 3 years ago

Forgive my naivety here. I've never worked with netrc files before.

Are these file paths configurable? A lot of people (myself included) prefer to keep configuration under $XDG_DATA_HOME. For example all of my neovim configuration lives under $HOME/.config/nvim, and all of my bash config is under $HOME/.config/bash. Does netrc follow this convention as well?

https://wiki.archlinux.org/title/XDG_Base_Directory

stuart-warren commented 3 years ago

Forgive my naivety here. I've never worked with netrc files before.

Are these file paths configurable? A lot of people (myself included) prefer to keep configuration under $XDG_DATA_HOME. For example all of my neovim configuration lives under $HOME/.config/nvim, and all of my bash config is under $HOME/.config/bash. Does netrc follow this convention as well?

https://wiki.archlinux.org/title/XDG_Base_Directory

.netrc tends to be in the $HOME directory https://linux.die.net/man/1/ftp

A number of systems support reading it from $NETRC

I can add that?