#! /usr/bin/env bash # Installs shell. if [[ -z $(cat /etc/shells | grep "$(get_homebrew_bin_root)/bash") ]]; then sudo bash -c "printf '$(get_homebrew_bin_root)/bash\n' >> /etc/shells" chsh -s "$(get_homebrew_bin_root)/bash" rm -f "$HOME/.bash_profile" else printf "%s\n" "Shell is installed." fi