(alias): Add dockps alias, if docker is installed.

This commit is contained in:
heavy 2024-10-10 13:18:04 +00:00
parent ff3537b7c3
commit abbb1fd904

View File

@ -91,6 +91,16 @@ if [ -x /usr/bin/fdfind ]; then
alias fd='fdfind'
fi
# docker ps if docker is available
if [ -x /usr/bin/docker ]; then
alias dockps='docker ps --format "table {{ `{{.Image}}` }}\t{{ `{{.Status}}` }}\t{{ `{{.Names}}` }}\t{{ `{{.CreatedAt}}` }}"'
fi
# use neovim if available
if [ -x /usr/bin/nvim ]; then
alias vi=nvim
alias vim=nvim
fi
# raspberry pi commands
if [ -x /usr/bin/vcgencmd ]; then
alias pi-temp='vcgencmd measure_temp'