]> git.wh0rd.org - home.git/blobdiff - .config/mutt/formatting.rc
mutt: speed up folder_format a litte
[home.git] / .config / mutt / formatting.rc
index 67e957b8c580a190bdbc52b3d8862abb2ffebc91..6addceb7c5f35518c8a2af1ecbc8161c897fb646 100644 (file)
@@ -39,8 +39,11 @@ set date_format = "%d %b %Y %H:%M"
 # %u owner name                %>X right justify the rest and pad with "X"
 # %|X pad to the end of the line with character "X"
 #set folder_format="%3C %t %N %F %-8.8u %-8.8g %8s %d %f" # file browser menu
-set folder_format="%F  %d %8s   %f" # file browser menu
-set folder_format="sh -c '~/.config/mutt/folder.sh \"$@\"' -- '%f' '%F  %d %8s'|"
+#set folder_format="%F  %d %8s   %f" # file browser menu
+# Since folder_format is run through system(), avoid forking another process.
+# We need to use eval to use ; since mutt will chop the string at the first one
+# it sees that isn't quoted.
+set folder_format="eval \"set -- '%f' '%F  %d %8s'; . ~/.config/mutt/folder.sh\"|"
 
 # http://www.mutt.org/doc/devel/manual.html#index-format
 set index_format = "%Z%?M?ยป& ?%s %*  %B %-20.20n %D"