"Colorful Command Line: How to Add lolcat to Your Linux Commands"
1. Edit your shell configuration file : nano ~/.bashrc # or nano ~/.zshrc 2. Add the functions : Append the following lines to your configuration file. These functions will wrap the commands and pipe their output through lolcat : function lolcat_wrapper() { command "$@" | lolcat } alias ls='lolcat_wrapper ls' alias cat='lolcat_wrapper cat' alias echo='lolcat_wrapper echo' alias grep='lolcat_wrapper grep' alias tail='lolcat_wrapper tail' alias head='lolcat_wrapper head' alias dmesg='lolcat_wrapper dmesg' alias df='lolcat_wrapper df' alias du='lolcat_wrapper du' alias free='lolcat_wrapper free' alias ps='lolcat_wrapper ps' alias top='lolcat_wrapper top' alias htop='lolcat_wrapper htop' alias ifconfig='lolcat_wrapper ifconfig' alias ip='lolcat_wrapper ip' alias ping='lolcat_wrapper ping' alias traceroute='lolcat_wrapper traceroute' alias ...
Comments
Post a Comment