Also check if dockerd is running

This commit is contained in:
Sam A. 2023-03-04 16:12:57 +01:00
parent 0cd17de71c
commit 8bf4d4d75a
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 5 additions and 1 deletions

View file

@ -11,7 +11,7 @@ command -v rustup >/dev/null 2>&1 &&
{ rustup update; echo; }
command -v nvim >/dev/null 2>&1 &&
{ nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
command -v docker >/dev/null 2>&1 && [ -n "$(sudo docker images -q)" ] &&
command -v docker >/dev/null 2>&1 && [ -n "$(sudo docker images -q 2>/dev/null)" ] &&
{ sudo sh -c "docker images |
awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' |
xargs -l docker pull"; echo; }

View file

@ -2,6 +2,10 @@
export PATH="$HOME/.local/bin:$PATH"
(( ${+commands[go]} )) && export PATH="$(go env GOPATH)/bin:$PATH"
# Language
export LANG="en_US.UTF-8"
export LC_COLLATE="C"
# Essentials
export PAGER="less"
export TERM="xterm-256color"