diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-01 14:07:03 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-01 14:07:03 +0100 |
commit | ed0bc4340570c8ecf5da244b69027c97750ee726 (patch) | |
tree | 9b4f1d6116327fb517cbe1e4f20bc3526927d275 /config/essentials/zsh | |
parent | 331272136a4fc36fce308dc87e4a1b53daba328b (diff) |
cleanup
Diffstat (limited to 'config/essentials/zsh')
-rw-r--r-- | config/essentials/zsh/functions.zsh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 9783794..c64c474 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -270,13 +270,15 @@ fpass() { muttmail() { - log "email set: " - ls $HOME/.config/mutt/configs | + local config + config="$HOME/.config/mutt" + + find "$config"/configs -type f -printf '%f\n' | fzf | tee /dev/stderr | - xargs -I {} ln -sf "$HOME/.config/mutt/configs/{}" $HOME/.config/mutt/muttrc - log 'Press [Enter to login]' - read && mutt + xargs -I {} ln -sf "$config/configs/{}" "$config"/muttrc + log 'Press [Enter] to login.' + head -n 1 && mutt } resize() |