_commend_exists


"/home/yossef/notes/git/scripts/_commend_exists.md"

path: git/scripts/_commend_exists.md

- **fileName**: _commend_exists
- **Created on**: 2025-03-26 14:03:22

install

sudo pacman -S command

a simple script for check if the commend exits or not

#!/usr/bin/env bash
commend_exists() {
    command -v "$1" >/dev/null 2>&1
}
if [ $# -eq 0 ]; then
    cecho "Please provide a command to check." red
    exit 1
fi
commend_exists "$1"

reference