Missing a -z
Enable debugging
Put quotes around it
Typo fix
Use $HOME instead of globbing
Fully qualify path
vi mode for editing