dotfiles/dot_common.sh

6 lines
169 B
Bash
Raw Normal View History

2020-07-03 17:31:51 -05:00
#!/bin/bash
# Should not be executable, only sourced by other scripts
command_exists() { command -v ${1} >/dev/null; }
2020-11-22 23:35:09 -06:00
source_if_exists() { [ -f "$1" ] && source $1; }