X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=7388d5a59743eb30f696805401708f4ed5f5c751;hb=d48e73aef5910b860e0a744fc09d2664f5023df1;hp=167af7b5c4e4cf95101a977adf42d585f468228c;hpb=295bf35b902b88f7b26703278340e6eb26e6b524;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 167af7b..7388d5a 100644 --- a/.shellrc +++ b/.shellrc @@ -330,12 +330,13 @@ fi include() { cfg="$1" + shift if [ -f "./$cfg" -a -r "./$cfg" ]; then echo "Reading config file \`$cfg'" 1>&2 - . "./$cfg" + . "./$cfg" "$@" elif [ -f "$HOME/lib/config/$cfg" -a -r "$HOME/lib/config/$cfg" ]; then echo "Reading config file \`$HOME/lib/config/$cfg'" 1>&2 - . "$HOME/lib/config/$cfg" + . "$HOME/lib/config/$cfg" "$@" else echo "Cannot find config file \`$cfg'" 1>&2 fi