1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
is_true() { if [[ "$1" =~ 1|on|true ]]; then return 0 else return 1 fi } append-bash-profile() { cat "/bootstrap/bash-profile/$1" >> /root/.bash_profile } copy-home-dot-file() { cp "/bootstrap/home-dot/$1" "/root/.$1" }