From 3bc80d8b86cdb1bf165c947b3268d56d27a2ae99 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 27 Nov 2020 19:39:03 -0600 Subject: [PATCH] .bashrc: Add docker-related helper aliases --- .bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bashrc b/.bashrc index 0ecfef9..2400909 100644 --- a/.bashrc +++ b/.bashrc @@ -260,6 +260,13 @@ alias rehash="hash -r" # svn-wrapper alias svn=svn-wrapper +# docker helpers +if [ -n "$(type -P docker)" ]; then + alias docker-tail="docker logs -tf --tail 50" + alias docker-top="docker run --name ctop -it --rm -v /var/run/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop" + alias ctop="docker-top" +fi + if [ "$UNAME" = SunOS ]; then # Solaris: use GNU versions of coreutils test -x /usr/gnu/bin/grep && alias grep="/usr/gnu/bin/grep" -- 2.45.2