zshuper/functions/utils.zsh
2018-02-03 02:29:33 +02:00

16 lines
269 B
Bash

#
# Utilities
#
# Returns whether command exists or not
function __zspr_has_command {
command -v "${1}" >/dev/null
return $?
}
# Creates directory relative to home directory
function __zspr_mkdir {
local HOMEDIR="${HOME}"
mkdir -p "${HOMEDIR}/${1}"
}