From 6dc4ece3b894b24dee0e1062c22f6c1bf205604a Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 22 Dec 2020 07:05:47 +0000 Subject: urigetline now uses $uristart_config, if set, to find the config file --- urigetline | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'urigetline') diff --git a/urigetline b/urigetline index 6d20320..3f6bb51 100755 --- 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" \ -- cgit v1.2.3