This document outlines the steps to install GRC (Generic Colouriser) on a CentOS system and configure it for colorful command output. ๐ญโจ
First, install the necessary packages using the following command:
sudo yum install git makeโ Installs Git and Make for handling the installation process.
Next, clone the GRC repository from GitHub using:
git clone https://github.com/garabik/grc.git๐ฅ This downloads the GRC source code to your system.
Change into the GRC directory:
cd grc๐ You are now inside the downloaded GRC folder.
Execute the installation script to install GRC:
sudo ./install.sh๐ ๏ธ This script installs GRC and sets it up for use.
To enable colorful output for various commands, add aliases to your .bashrc file. Open it in a text editor:
nano ~/.bashrc๐ Now, add the following aliases to enhance terminal colors:
๐ Colorful output aliases ๐จ
alias ls='grc ls'
alias ll='grc ls -l'
alias la='grc ls -a'
alias l='grc ls -CF'
alias grep='grc grep'
alias egrep='grc egrep'
alias fgrep='grc fgrep'
alias ping='grc ping'
alias diff='grc diff'
alias tail='grc tail'
alias head='grc head'
alias ps='grc ps'
alias netstat='grc netstat'
alias ip='grc ip'
alias ifconfig='grc ifconfig'
alias df='grc df'
alias du='grc du'
alias free='grc free'
alias top='grc top'
๐จ This makes your terminal more visually appealing with colorized output! ๐
To apply the changes made to your .bashrc, run:
source ~/.bashrcโ Now, your terminal commands will display colored output automatically! ๐