summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-07-07 14:55:19 +0200
committerJoe <rbo@gmx.us>2024-07-07 14:55:19 +0200
commit8e84bd453a063ecd006a3929c550186895d4057e (patch)
treeaada3660ba166fee10aa92bc8043243c03b928a3
parentup (diff)
downloaddotfiles-bsd-8e84bd453a063ecd006a3929c550186895d4057e.tar.gz
dotfiles-bsd-8e84bd453a063ecd006a3929c550186895d4057e.tar.bz2
dotfiles-bsd-8e84bd453a063ecd006a3929c550186895d4057e.tar.xz
dotfiles-bsd-8e84bd453a063ecd006a3929c550186895d4057e.tar.zst
dotfiles-bsd-8e84bd453a063ecd006a3929c550186895d4057e.zip
up
-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' \