ambevar-dotfiles/.scripts/newsbeuter-bookmarks

14 lines
290 B
Bash
Executable File

#!/bin/sh
## This script is used by newsbeuter to store starred item.
[ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config"
url="$1"
title="$2"
description="$3"
SEP=" "
OUTPUT="$XDG_CONFIG_HOME/newsbeuter/news_starred"
echo -e "${url}$SEP${title}$SEP${description}" >> "$OUTPUT"