I'm trying to install Oh my zsh through script:
ssh username@host "
sh -c \"\$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)\"
"
However, when the install finishes, it hangs, the command doesn't exit. It waits for my input and I have to pres CTRL+C so it ends. How can I make it run and exit itself?
I found some answers here with similar issues so I tried executing these but the result was pretty much the same.
sh -c \"\$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)\" &
sh -c \"\$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)\" 1>&2