fix shell function declaration syntax
remove vim spelling