diff --git a/lib/helpers.bash b/lib/helpers.bash index b5fa41a3..7772b4f9 100755 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -581,6 +581,12 @@ _bash-it-profile-rm() { return 1 fi + # Users should not be allowed to delete the default profile + if [[ $name == "default" ]]; then + echo -e "\033[91mCan not remove the default profile...\033[m" + return 1 + fi + local profile_path="${BASH_IT}/profiles/$name.bash_it" if [[ ! -f "$profile_path" ]]; then echo -e "\033[91mCould not find profile \"$name\"...\033[m"