mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-09-21 10:27:09 +00:00
Use type_exists
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
This commit is contained in:
parent
6c79f70891
commit
812a8d60ef
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user