#!/bin/bash
# Define the lines to appendlines_to_append="#AR alias
alias dcp='docker compose --profile'
alias dps='docker ps'
alias dc=docker compose'"# Check if the lines already exist in the .bashrc file to avoid duplicatesif ! grep -Fxq "$lines_to_append" ~/.bashrc;then# Append the lines to the .bashrc fileecho"$lines_to_append" >> ~/.bashrc
echo"Successfully appended the following lines to ~/.bashrc:"echo"$lines_to_append"elseecho"The specified lines already exist in ~/.bashrc. No changes were made."fiecho"Remember to source your .bashrc file or open a new terminal for the changes to take effect:"echo" source ~/.bashrc"