diff options
author | Joe <rbo@gmx.us> | 2024-07-07 14:55:19 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-07-07 14:55:19 +0200 |
commit | 8e84bd453a063ecd006a3929c550186895d4057e (patch) | |
tree | aada3660ba166fee10aa92bc8043243c03b928a3 | |
parent | up (diff) | |
download | dotfiles-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.zsh | 10 |
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' \ |