I have multiple bash file. I want to write a master bash file which will include all required bash file in current directory. I tried like this
#!/bin/bash
HELPER_DIR=`dirname $0`
.$HELPER_DIR/alias
But I when I put following line in my $HOME/.bashrc
if [ -f /home/vivek/Helpers/bash/main.bash ]; then
. /home/vivek/Helpers/bash/main.bash
fi
I am getting error no such file ./alias. File alias is there. How can I include relative bash file ?