brew tap for https://github.com/dangxuandev/fcitx-remote-for-osx
brew tap dangxuandev/fcitx-remote-for-osx
brew install dangxuandev/fcitx-remote-for-osx/fcitx-remote-for-osx --with-input-mothod=osx-pinyin
You can use brew info dangxuandev/fcitx-remote-for-osx/fcitx-remote-for-osx
to get input method support info