Add command-exists shell helper

This commit is contained in:
2020-05-23 19:16:06 +01:00
parent ba559be4bc
commit d4d64f654e
7 changed files with 16 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ docker_remove_exited () {
docker rm "$(docker ps -f='status=exited' -q)"
}
if (( $+commands[docker] )); then
if command-exists docker; then
zinit ice from'gh-r' as'program' mv'ctop-* -> ctop'
zinit light bcicen/ctop
fi