(docker): Add docker aliases.
This commit is contained in:
parent
70eddcda69
commit
d2596eb1f9
@ -65,10 +65,6 @@ alias ips='ip --brief -c address'
|
||||
alias sol-light='set-scheme.sh solarized.light'
|
||||
alias sol-dark='set-scheme.sh solarized.dark'
|
||||
|
||||
{{ if eq .bash.prompt.category "Uberspace" -}}
|
||||
alias quota='quota -gls'
|
||||
{{ end -}}
|
||||
|
||||
# if tldr++ is installed, use it the static way
|
||||
if tldr --version &> /dev/null
|
||||
then
|
||||
@ -91,9 +87,12 @@ if [ -x /usr/bin/fdfind ]; then
|
||||
alias fd='fdfind'
|
||||
fi
|
||||
|
||||
# docker ps if docker is available
|
||||
# docker aliases if docker is available
|
||||
if [ -x /usr/bin/docker ]; then
|
||||
alias dockps='docker ps --format "table {{ `{{.Image}}` }}\t{{ `{{.Status}}` }}\t{{ `{{.Names}}` }}\t{{ `{{.CreatedAt}}` }}"'
|
||||
alias dps='docker ps --format "table {{.Image}}\t{{.Status}}\t{{.Names}}\t{{.CreatedAt}}"'
|
||||
alias dcu='docker compose up -d '
|
||||
alias dcd='docker compose down '
|
||||
alias dcl='docker logs -f '
|
||||
fi
|
||||
# use neovim if available
|
||||
if [ -x /usr/bin/nvim ]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user