From: Richard Hartmann Date: Fri, 24 Oct 2014 20:19:08 +0000 (+0200) Subject: vcsh: support repo-specific config files X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/11a4aef2d1663b1b3790ad34788227f9d299e1d9?hp=712cef9c4d816ff5960945f46f3a0a03e8921325 vcsh: support repo-specific config files --- diff --git a/vcsh b/vcsh index 58ecb7f..2e96300 100755 --- a/vcsh +++ b/vcsh @@ -573,6 +573,9 @@ check_dir "$VCSH_REPO_D" verbose "$VCSH_COMMAND begin" VCSH_COMMAND=$(echo "$VCSH_COMMAND" | sed 's/-/_/g'); export VCSH_COMMAND +# Source repo-specific configuration file +[ -r "$XDG_CONFIG_HOME/vcsh/config.d/$VCSH_REPO_NAME" ] && . "$XDG_CONFIG_HOME/vcsh/config.d/$VCSH_REPO_NAME" + # source overlay functions for overlay in "$VCSH_OVERLAY_D/$VCSH_COMMAND"* "$VCSH_OVERLAY_D/$VCSH_REPO_NAME.$VCSH_COMMAND"*; do [ -r "$overlay" ] || continue