diff --git a/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh b/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh index 33c01c5..bcb9fc8 100644 --- a/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh +++ b/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh @@ -67,6 +67,7 @@ alias ll='ls --classify --color --group-directories-first --human-readable -l' # system 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-' # zsh alias zdotdir='cd -- ${ZDOTDIR}'