0

I've installed KeePass2.23 on my mac. It is in my home directory ~KeePass-2.23/. I'd like to create an alias to run this program. Is this do-able? The steps I use to run KeePass now are:

johns-MacBook-Pro:~ johndcowan$ cd KeePass-2.23/
johns-MacBook-Pro:KeePass-2.23 johndcowan$ mono KeePass.exe

Instead of cd-ing to the folder or typing in the path each time, I'd like to just use an alias and type one word:

johns-MacBook-Pro:~ johndcowan$ keepass

and have the program run. In my .bash_aliases file I added:

alias keepass='mono ~KeePass-2.23/KeePass.exe'

This doesn't work. I tried without the quotes also to no avail. Any suggestions? Thanks,

John Cowan
  • 1,452
  • 5
  • 25
  • 39

1 Answers1

0

Your alias should be:

alias keepass='cd ~/KeePass-2.23 && mono KeePass.exe'
Mark Setchell
  • 191,897
  • 31
  • 273
  • 432