#!/bin/bash [[ -f ~/.bash_aliases && ! -z $(cat ~/.bash_aliases | grep c_red) ]] && echo "Les couleurs sont déjà déclarés dans l'environnement" && exit 1 echo 'export c_blinkfast="\033[6m" export c_light="\033[1m" export c_white_bg="\033[47m" export c_blue="\033[34m" export c_red_bg="\033[41m" export c_hide="\033[8m" export c_purple_bg="\033[45m" export c_yellow_bg="\033[43m" export c_dark="\033[2m" export c_reverse="003[7m" export c_underline="\033[4m" export c_blinkslow="\033[5m" export c_red="\033[31m" export c_white="\033[37m" export c_cyan_bg="\033[46m" export c_italic="\033[3m" export c_black="\033[30m" export c_cross="\033[9m" export c_green="\033[32m" export c_purple="\033[35m" export c_="\033[0m" export c_cyan="\033[36m" export c_black_bg="\033[40m" export c_yellow="\033[33m" export c_blue_bg="\033[44m" export c_green_bg="\033[42m"' >> ~/.bash_aliases source ~/.bash_aliases