summaryrefslogtreecommitdiff
path: root/config/essentials/zsh/functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'config/essentials/zsh/functions.zsh')
-rw-r--r--config/essentials/zsh/functions.zsh13
1 files changed, 12 insertions, 1 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh
index bfaea9d..ada523d 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -2,7 +2,7 @@
die ()
{
- echo "$1" >&2
+ echo "$@" >&2
}
awnk() {
@@ -267,3 +267,14 @@ trcp ()
{
scp "$1" db:/media/basilisk/downloads/transmission/torrents/
}
+
+muttmail ()
+{
+ die -n "email set: "
+ ls $HOME/.config/mutt/configs |
+ fzf |
+ tee /dev/stderr |
+ xargs -I {} ln -sf "$HOME/.config/mutt/configs/{}" $HOME/.config/mutt/muttrc
+ die -n 'Press [Enter to login]'
+ read && mutt
+}