Use type_exists

Co-authored-by: Koichi Murase <[email protected]>
This commit is contained in:
Ajeet D'Souza
2021-12-24 21:12:50 +09:00
committed by Koichi Murase
co-authored by Koichi Murase
parent 6c79f70891
commit 812a8d60ef
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Check if zoxide is installed
if [ -x "$(command -v zoxide)" ]; then
if type_exists zoxide; then
eval "$(zoxide init bash)"
else
echo '[oh-my-bash] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide'