Article 559W2 Moving bash files to relevant directory

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?
Thankslatest?d=yIl2AUoC8zA latest?i=IS2hnLoS1qs:qXwvXfTX_DQ:F7zBnMy latest?i=IS2hnLoS1qs:qXwvXfTX_DQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=IS2hnLoS1qs:qXwvXfTX_DQ:gIN9vFwIS2hnLoS1qs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments