backup_media: add code and line to trap
.bashrc: improve prompt and color logic