[Terminal] Beautiful console

How to do?

.bashrc

orange=$(tput setaf 166);
yellow=$(tput setaf 228);
green=$(tput setaf 71);
bold=$(tput bold);
reset=$(tput sgr0);

PS1="\[${bold}\]\n";
PS1+="\[${orange}\]\u";             # username
PS1+="\[${white}\]@";
PS1+="\[${yellow}\]\h";             # host
PS1+="\[${white}\]:";
PS1+="\[${green}\]\w";              # working directory
PS1+="\n";
PS1+="\[${white}\]\$ \[${reset}\]"; # '$' (and reset color)
export PS1;
export CLICOLOR=1

alias ls='ls -GFh'

.bash_profile


source ~/.bashrc

Comments

Popular posts from this blog

[OpenCV] What is gocv?

[OpenCV] Chapter01-05 Working with UI elements such as scrollbars in OpenCV window

[OpenCV] How to set up gocv