diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-03-31 15:33:45 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-03-31 15:33:45 -0400 |
commit | 8b30d99552fb97614a63895c385907e5dbbcb852 (patch) | |
tree | b81e6983e426cffd6cdaf58a73f0a9d7c908ef09 | |
parent | 5929cd30254b26ed886fab508904c48d1b687a1e (diff) |
get available accounts from muttrcs
-rwxr-xr-x | mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -294,7 +294,7 @@ wipe () { \ } pick() { \ - numbered="$(grep "^accounts *=" "$HOME/.config/offlineimap/config" | sed 's/accounts *= *//g;s/,/ /g;s/ \+/\n/g' | nl)" + numbered="$(ls $accdir/*muttrc | sed "s/.*\///;s/\..*//" | nl)" [ "$(echo "$numbered" | wc -w)" = 0 ] && printf "No accounts to delete.\\n" && return 1 printf "Select an accounts to %s:\\n" "$1" echo "$numbered" |