Update ShellCommand so that `.cd` autocompletes to `.cd ~`

The `.cd` command currently does not do anything when given an empty string. This PR changes that so that `.cd` changes the current working directory to the users $HOME or tilde. It's based off of the discussion in #1028.