the simplest would be to put it in a file called dir (nothing more...)
then
alias dir='ksh $HOME/dir'
or whatever shell you are using...
or make your file executable and give it another name, the alias is just so you dont risk calling a program with the same name...