repo: uritools action: commit revision: path_from: revision_from: 6dc4ece3b894b24dee0e1062c22f6c1bf205604a: path_to: revision_to:
commit 6dc4ece3b894b24dee0e1062c22f6c1bf205604a Author: epochDate: Tue Dec 22 07:05:47 2020 +0000 urigetline now uses $uristart_config, if set, to find the config file diff --git a/urigetline b/urigetline
--- a/urigetline
+++ b/urigetline
@@ -3,8 +3,12 @@ uri="$1"
### old way.
# line="$(grep "^${scheme}:" ~/.config/uristart.conf | cut -d: -f2- | sed 's/^[ \t]*//g' | sed 's/\\/\\\\/g')"
+if [ ! "$uristart_config" ];then
+ uristart_config=~/.config/uristart.conf
+fi
+
### fancy way.
-grep '^[^#]' ~/.config/uristart.conf \
+grep '^[^#]' "$uristart_config" \
| while read -r l;do
uritmp="$uri"
uritmp="$(printf "%s\n" "$l" \
-----END OF PAGE-----