Depending on machine I have to access file with same name but from different directory. So currently I have one alias per machine for the file being accessed.
But is it possible to check the machine on which current session is being opened and then just source aliases corresponding to that machine. Something like below in bashrc
If(machine1)
alias a1='command1'
else if (machine2)
alias a1='command2'
else
alias a1='command3'
You can use hostname
e.g.