From 76f209073d7224f896fcc9949740c0c45c101d64 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sun, 23 Apr 2023 17:44:41 -0700 Subject: [PATCH] Fix command quoting error in list-docker-root alias --- zsh-linux/.config/zsh-linux/00-linux-aliases.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh b/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh index bb12ac2..8d5a65f 100644 --- a/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh +++ b/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh @@ -68,7 +68,7 @@ alias ll='ls --classify --color --group-directories-first --human-readable -l' alias bootloader='cd /boot/loader/entries' alias restartfans='sudo systemctl restart fancontrol.service' alias dcips=$'docker inspect -f \'{{.Name}}-{{range $k, $v := .NetworkSettings.Networks}}{{$k}}-{{.IPAddress}} {{end}}-{{range $k, $v := .NetworkSettings.Ports}}{{ if not $v }}{{$k}} {{end}}{{end}} -{{range $k, $v := .NetworkSettings.Ports}}{{ if $v }}{{$k}} => {{range . }}{{ .HostIp}}:{{.HostPort}}{{end}}{{end}} {{end}}\' $(docker ps -aq) | column -t -s-' -alias list-docker-root='for c in $(docker ps -q); do docker inspect $c -f "{{ .Name }}:"; docker top $c | awk '{print $1, $2, $8}'; echo "--------------"; done' +alias list-docker-root='for c in $(docker ps -q); do docker inspect $c -f "{{ .Name }}:"; docker top $c | awk "{print $1, $2, $8}"; echo "--------------"; done' # zsh alias zdotdir='cd -- ${ZDOTDIR}'