]> code.delx.au - dotfiles/blob - .mutt/set_xtitle
set_xtitle to explicitly uses bash
[dotfiles] / .mutt / set_xtitle
1 #!/usr/bin/env bash
2 # Demonstration of format string pipes. Sets the xterm title and returns the
3 # string unchanged.
4 #
5 # Example usage:
6 # set status_format="mutt_xtitle '%r %f (%L) [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?]'|"
7
8 echo -ne "\033]0;$1\007" > /dev/tty
9 echo "$1"