This question is basically a duplicate of this: https://askubuntu.com/questions/91740/how-to-move-all-files-in-current-folder-to-subfolder
But instead I'm asking how to do it in the Mac OS X terminal with oh-my-zsh.
My issue with the solutions given is they don't seem to work in my terminal (replacing the folder "new" in the question with "oldCodeBase" here)
[~/Sid/Moonshine_Machine, 127, master+3]: mv !(oldCodeBase) oldCodeBase zsh: number expected
What is the number its expecting here?
Moving to the other suggested solution was to use the shopt command.
But I don't seem to have the shopt command available for use:
~/Sid/Moonshine_Machine, 1, master+3]: shopt -s extglob dotglob zsh: command not found: shopt
So at this point neither solution seems to be working.
I found that "setopt" in zsh appears to be a comparable command to "shopt" but leads to the following issue
[~/Sid/Moonshine_Machine, 127, master+3]: setopt -s extglob dotglob setopt: no such option: extglob