summaryrefslogtreecommitdiffstats
path: root/.config/zsh/alias.zsh
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh/alias.zsh')
-rw-r--r--.config/zsh/alias.zsh10
1 files changed, 8 insertions, 2 deletions
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' \