(alias): Add dockps alias, if docker is installed.
This commit is contained in:
parent
ff3537b7c3
commit
abbb1fd904
@ -91,6 +91,16 @@ if [ -x /usr/bin/fdfind ]; then
|
|||||||
alias fd='fdfind'
|
alias fd='fdfind'
|
||||||
fi
|
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
|
# raspberry pi commands
|
||||||
if [ -x /usr/bin/vcgencmd ]; then
|
if [ -x /usr/bin/vcgencmd ]; then
|
||||||
alias pi-temp='vcgencmd measure_temp'
|
alias pi-temp='vcgencmd measure_temp'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user