Moving bash files to relevant directory
by salmanahmed from LinuxQuestions.org on (#559W2)
Hi
My home directory contains following bash related files:
Code:.bash_aliases .bash_functions .bash_logout .bashrc
.bash_eternal_history .bash_history .bash_profile .bash_variablesI want to move all these files in a directory (~/.bash). I know how to move all these files and make relevant changes in .bashrc file. When I login, my bash loads ~/.bash_profile file and by making following changes in the contents of ~/.bash_profile I can move ~/.bashrc and other files to ~/.bash:
Code:# ~/.bash_profile
#
[[ -f ~/.bash/.bashrc ]] && . ~/.bash/.bashrcBut I don't know how can I move ~/.bash_profile itself, as it is the first file which bash looks for after login. So where should I make changes so that bash looks in ~/.bash directory for .bash_profile?
Thanks


My home directory contains following bash related files:
Code:.bash_aliases .bash_functions .bash_logout .bashrc
.bash_eternal_history .bash_history .bash_profile .bash_variablesI want to move all these files in a directory (~/.bash). I know how to move all these files and make relevant changes in .bashrc file. When I login, my bash loads ~/.bash_profile file and by making following changes in the contents of ~/.bash_profile I can move ~/.bashrc and other files to ~/.bash:
Code:# ~/.bash_profile
#
[[ -f ~/.bash/.bashrc ]] && . ~/.bash/.bashrcBut I don't know how can I move ~/.bash_profile itself, as it is the first file which bash looks for after login. So where should I make changes so that bash looks in ~/.bash directory for .bash_profile?
Thanks