How does one define aliases for use within MobaXTerm *local* bash shell

aliasbashrcmobaxtermprofile

I have been using MobaXterm for the last couple of weeks in Windows and I love it.

However, I haven't quite figured out how to define my own aliases for use within the local bash shell. The obvious Google search doesn't seem to yield any results on this matter.

I have tried putting .profile and .bashrc files with my alias definitions in the same directory as the Mobaxterm executable but no dice. The same files are in my Windows 'home' directory, but they are not seen by Mobaxterm.

I have also noticed that there are lots of predefined aliases in the terminal already, but I haven't been able to determine where these are defined, so that I could add my own…

Best Answer

If you create the .bashrc file it will work.

cd ~
touch .bashrc
chmod 755 .bashrc 

Edit the file and add an alias

alias hello='echo hello world'
Related Question