It's recommended to add alias to .bashrc file: marfun() { python /home/mar345/MAR345-shell.py "$*" } alias okmar=marfun