Final fix on list-docker-root alias

This commit is contained in:
Eric Torres 2023-04-23 17:51:18 -07:00
parent 76f209073d
commit f6a51e4c85

View File

@ -68,7 +68,7 @@ alias ll='ls --classify --color --group-directories-first --human-readable -l'
alias bootloader='cd /boot/loader/entries' alias bootloader='cd /boot/loader/entries'
alias restartfans='sudo systemctl restart fancontrol.service' 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 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 # zsh
alias zdotdir='cd -- ${ZDOTDIR}' alias zdotdir='cd -- ${ZDOTDIR}'