cd / ; apropos ; find * ; less /var/log/prx ;

bmk : add or load bookmarks #

#!/bin/sh
# addbmk
# store an URL in $HOME/.bookmarks

# edit the page
bmk=$HOME/.bookmarks

PROMPT="url title:"

URL=$(xclip -o | match -p "$PROMPT") 
test -z "${URL}" && exit
echo "${URL}" >> "${bmk}"
sort -u "${bmk}" -o "${bmk}"

# edit bookmark
test -z "${TERM}" && $EDITOR ${bmk} || st -e $EDITOR "${bmk}"

#!/bin/sh
url="$(grep -v "^#" $HOME/.bookmarks | \
    match -p "bmk>" |\
    cut -d' ' -f1 )"

if [ -n "$url" ]; then
    url "${url}"
fi
exit 0