Files
neoromantique-dotfiles/scripts/docker.sh
David Aizenberg cafc9f3ff1 update
2020-11-10 01:46:56 +04:00

13 lines
169 B
Bash
Executable File

#!/bin/bash
# Number of docker containers running
count=$(docker ps -q | wc -l | sed -r 's/^0$//g')
if [ "$count" = '' ]; then
count=0
fi
echo "🐳: $count"