Skip to content

Instantly share code, notes, and snippets.

@bynect
Last active June 1, 2021 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bynect/c6fca62d3c21ec56fd42cbf774774530 to your computer and use it in GitHub Desktop.
Save bynect/c6fca62d3c21ec56fd42cbf774774530 to your computer and use it in GitHub Desktop.
Patch that adds XDG dirs to the default wgetpaste config locations.
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