aboutsummaryrefslogtreecommitdiff
path: root/urlsave
diff options
context:
space:
mode:
Diffstat (limited to 'urlsave')
-rwxr-xr-xurlsave20
1 files changed, 20 insertions, 0 deletions
diff --git a/urlsave b/urlsave
new file mode 100755
index 0000000..afef452
--- /dev/null
+++ b/urlsave
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# Save URL info in a file as a simple bookmarking service.
+#
+
+# Parameters
+CONFIG="$HOME/.custom/urlsave"
+
+# Load config
+if [ -e "$CONFIG" ]; then
+ source $CONFIG
+fi
+
+# Check
+if [ -z "$URLFILE" ] || [ ! -e "$URLFILE" ]; then
+ URLFILE="/dev/stdout"
+fi
+
+# Dispatch
+urlinfo $* >> $URLFILE