My bash prompt was black and white, it was sad. I’ve discovered that i can customize bash to look more colorfull. In order to do that i only needed to edit a file called .bashrc

The first thing I’ve done was to change the default ls colors using this guide :

How to Change Colors on LS in Bash

Then I’ve changed the prompt following this guide :

How to Customize Your Bash Prompt

I may probably add alias to customize it more : ex : alias hello='echo "HELLOOOOOOOO!" '

For now my .bashrc looks like this :

# ~/.bashrc

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='\e[36m[\u@\h:\e[34m\w]\]\e[00m$ '


123 Words

2022-10-31 18:35 +0100