diff options
Diffstat (limited to 'urlsave')
-rwxr-xr-x | urlsave | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |