Cómo mejorar tu trabajo en el terminal
A veces puede resultar muy confuso trabajar con el terminal porque ejecutamos varios comandos y no queda claro dónde terminan los resultados vinculados a un comando y dónde empiezan los del otro.Una forma sencilla de solucionar este problema es agregar una barra separadora que permita dividir los diferentes comandos y sus resultados fácilmente.

Creá un archivo en blanco con el nombre .bash_ps1 en tu carpeta de usuario:
nano .bash_ps1
Luego, copiá el siguiente texto dentro del archivo:
# Fill with minuses
# (this is recalculated every time the prompt is shown in function prompt_command):
fill="--- "
reset_style='[ 33[00m]'
status_style=$reset_style'[ 33[0;90m]' # gray color; use 0;37m for lighter color
prompt_style=$reset_style
command_style=$reset_style'[ 33[1;29m]' # bold black
# Prompt variable:
PS1="$status_style"'$fill tn'"$prompt_style"'${debian_chroot:+($debian_chroot)}u@h:w$'"$command_style "
# Reset color for command output
# (this one is invoked every time before a command is executed):
trap 'echo -ne "e[0m"' DEBUG
function prompt_command {
# create a $fill of all screen width minus the time string and a space:
let fillsize=${COLUMNS}-9
fill=""
while [ "$fillsize" -gt "0" ]
do
fill="-${fill}" # fill with underscores to work on
let fillsize=${fillsize}-1
done
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
bname=`basename "${PWD/$HOME/~}"`
echo -ne "
Global
Argentina
Chile
Colombia
España
México
Perú
Uruguay
Venezuela