summaryrefslogtreecommitdiff
path: root/spmutt
blob: 029759803c7c9d9114dd01953094c06378fec9d6 (plain)
1
2
3
4
5
6
7
#!/bin/sh

COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)"

if [ "${COUNT:-0}" -lt "3" ]; then
  exec foot -a "$(basename $0)" neomutt
fi