replace alias with function

- bash aliases are only valid in interactive shells

- use a plain old shell function instead