AIX is really different from most distros I am used to. I am trying to set up my .bashrc so I did this in the file. I noticed when I ssh into the server or use the bash command for a new shell it was being ignored.
#-------------------------------------------------------------
# Source global definitions (if any)
#-------------------------------------------------------------
if [ -f /etc/bashrc ]; then
. /etc/bashrc # --> Read /etc/bashrc, if present.
fi
# Set Vim as my default editor
export EDITOR=vim
export PATH=$PATH:/opt/nimsoft
echo "Loading /u/user/.bashrc..."
Then I added the first one to my .profile. Is the first one better or the second one better? I have seen both used. When I login with ssh .bashrc seems to be working. Is there a better way to do this? When I use the bash command for a new shell my .bashrc is being ignored. Can I get some recommendations on how to handle this?
if [ -s ~/.bashrc ]; then
source ~/.bashrc;
fi
if [[ -f ~/.bashrc ]] ; then
. ~/.bashrc
fi
After figuring this out I would like to push this out to all of our AIX servers. How would I do this without screwing up the ksh users? I prefer bash and ksh is the default shell.