@dom96 I got the same error as @hcorion originally. Linux Mint 18, Bash. It prompts you to remove it but you never get the option to hit y/N. Tries to read from a non-available stdin maybe?
Great work! Any interest in changing the syntax to "choosenim head" instead of "choosenim #head". I end up having to quote the head as you describe in the doc, which seems kind of unnecessary.
