How to update .bashrc .bash_profile and get PS1 full path reflection


Create .bash_profile if not exist yet

touch .bash_profile

The .bash_profile should contains the following:

if [ -f ~/.bashrc ]; then
   source ~/.bashrc

Append into the file .bashrc the following:

PS1="\u@\h [\$PWD]# "

LS_OPTIONS='--color=tty -F -a -b -T 0';
export LS_OPTIONS;
alias ls='/bin/ls $LS_OPTIONS';
alias dir='/bin/ls $LS_OPTIONS --format=vertical';
alias vdir='/bin/ls $LS_OPTIONS --format=long';
alias d=dir;
alias v=vdir;
eval `dircolors -b`

Run next to get this updated:

source .bashrc


Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *