Last active
June 1, 2021 12:12
-
-
Save bynect/c6fca62d3c21ec56fd42cbf774774530 to your computer and use it in GitHub Desktop.
Patch that adds XDG dirs to the default wgetpaste config locations.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
735c735 | |
< for f in {/etc/,~/.}wgetpaste{.d/*,}.conf; do | |
--- | |
> for f in {/etc/,~/.}wgetpaste{.d/*,}.conf; do | |
739a740,747 | |
> # xdg locations override everything else | |
> if [[ -n "$XDG_CONFIG_HOME" ]]; then | |
> for f in $XDG_CONFIG_HOME/{wgetpaste/,wgetpaste/.,.,}wgetpaste{.d/*,}.conf; do | |
> if [[ -f $f ]]; then | |
> source "$f" || die "Failed to source $f" | |
> fi | |
> done | |
> fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment