MSYS: alias resets upon restarting MSYS console

Posted by Shiftbit on Super User See other posts from Super User or by Shiftbit
Published on 2010-05-28T20:07:52Z Indexed on 2010/05/28 20:12 UTC
Read the original article Hit count: 389

Filed under:
|

Every time I reopen the MSYS console (not cmd.exe) I find that the aliases that I have added to the shell are cleared. How can I save my aliases so that I do not to reenter them on every use?

For example:

$ alias desktop="cd=C:/Users/Superuser/Desktop"
$ alias
clear='clsb'
desktop='cd=C:/Users/Superuser/Desktop'

Upon restarting:

$ alias
clear='clsb'

How can I preserve my aliases?

© Super User or respective owner

Related posts about alias

Related posts about msys