summaryrefslogtreecommitdiff
path: root/spncmp
blob: aa7ccdb8d11ece6a9bee7af070dd62b4c38b44f2 (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)" ncmpcpp
fi