summaryrefslogtreecommitdiff
path: root/urigetline
diff options
context:
space:
mode:
Diffstat (limited to 'urigetline')
-rwxr-xr-xurigetline6
1 files changed, 5 insertions, 1 deletions
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" \