aspiers/stow

Stow should look in $STOW_DIR for .stowrc

Open

#121 geöffnet am 18. Jan. 2025

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Perl (51 Forks)batch import
easyenhancementhelp wanted

Repository-Metriken

Stars
 (1.013 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I was a bit surprised to realize that running stow from somewhere outside of my $STOW_DIR did not respect the .stowrc in $STOW_DIR. The documentation does indicate that this is expected behavior:

Stow searches for default command line options at .stowrc (current directory) and ~/.stowrc (home directory) in that order.

I feel that $STOW_DIR should be added to this list, since my understanding the point of $STOW_DIR is to let you run stow from outside of your $STOW_DIR. Of course, you can use the ~/.stowrc location (which I will start doing), but IMO the natural place to place your .stowrc is in your $STOW_DIR since it's likely version-controlled.

(Bonus suggestion: Look in ${XDG_CONFIG_HOME:-$HOME} instead of $HOME for .stowrc)

Contributor Guide