From 8e84bd453a063ecd006a3929c550186895d4057e Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 7 Jul 2024 14:55:19 +0200 Subject: up --- .config/zsh/alias.zsh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 323cd14..4e33b51 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -208,8 +208,14 @@ alias bi='cd $HOME/.local/bin' \ twi() { mpview https://twitch.tv/"$1"; } -alias nb='newsboat' \ - mutt='neomutt' \ +nb() { + cache_file="$XDG_DATA_HOME/newsboat/cache.db.gpg" + urls_file="$XDG_CONFIG_HOME/newsboat/urls.gpg" + [ -e $cache_file ] && gpg -q -d $cache_file >/tmp/cache.db + [ -e $urls_file ] && gpg -q -d $urls_file >/tmp/urls + newsboat -c /tmp/cache.db -u /tmp/urls +} +alias mutt='neomutt' \ sxiv='nsxiv -b -a' \ nsxiv='nsxiv -b -a' \ pinfo='pkg info -x' \ -- cgit v1.2.3