#!/bin/bash set -e YELLOW='\033[1;33m' GREEN='\033[0;32m' NC='\033[0m' # Check if this is a new installation or an update. if [ -z "$2" ]; then echo -e "${GREEN}Run the command below for 'bashacks' to take effect immediately:${NC}" echo -e "${YELLOW}$ echo '. /usr/bin/bashacks' >> \$HOME/.bashrc && source \$HOME/.bashrc${NC}" echo -e "${GREEN}Type 'bh' and press TAB twice!:${NC}" fi