-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make path for fishfile configurable to be separate from $fisher_path #545
Comments
@mattmc3 Have you read Changing the installation prefix? :) |
Hi Jorge, thanks for replying. I think you may have misread my request. I did read that section of the README and have changed my installation prefix by setting fisher_path. However, setting the fisher_path variable also unfortunately has the side effect of also changing the location of fishfile, which I believe is undesirable. I would like to be able to configure the location of fishfile separately or in addition to the location of fisher_path with the introduction of a new fisher_bundle_path variable. Did you see my PR? |
@mattmc3 Could you have a look at #479 & #480? They're related. I can't recall now, but I believe that's how I initially implemented Fisher.
Rather than introducing a new @Scrumplex Ping. |
@jorgebucaran - I just read through those issues - great background! And also, shoot. It looks like my use case and @Scrumplex's are at odds. Let me think on it - there might be a way to meet both needs without introducing a variable by looking for an existing file in both places first, and then just use whichever we find. I agree with favoring convention over configuration. If we go this path, I think you're right in that introducing a variable would only be necessary if someone were to want to put their fishfile in some random place, which I think is a low value feature. The higher value feature is to still look in $fisher_path first, and the follow that with a look at $fish_config (~/.config/fish) for the file, and then if it's not found, creating it. So, some questions for you:
|
Glad we agree on this. As for other considerations, leave out #524's fix or create a different PR for that, please. 🙏 For now, let's favor $fish_config/fishfile even if a $fisher_path/fishfile exists. |
@jorgebucaran : Here's the PR #547 |
* Better fishfile location support Per issue #545, support fishfile living in $fish_config even when $fisher_path is set if desired. * Re-home fishfile to $fish_config/fishfile Per discussion here: #547 #545 Fish file is returned from $fisher_path/fishfile to $fish_config/fishfile. * Change $fishfile to global variable
I keep my fish configuration in my dotfiles repo, but don't really need to keep all stuff installed via fisher there too, just the
fishfile
. Problem is, if you change$fisher_path
, it changes wherefishfile
gets placed to store it in $fisher_path. I would argue that your fishfile is a separate concept than what gets installed, so fishfile should be configurable to live with the rest of your config.So, for example, if I set
$fisher_path
to$XDG_DATA_HOME/fish/fisher
,fishfile
gets placed in$fisher_path
instead of~/.config/fish/fishfile
.I could symlink fishfile so it gets committed, but that seems like a bad solution. I saw this issue and wondered under what conditions you would accept a PR that made both these changes? I'm willing to put in the work to do the following:
fishfile
s to the newfish_bundle
. You'd probably have to leave this in for a few versions while people update.Let me know your thoughts.
The text was updated successfully, but these errors were encountered: