New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fish shell compatibility #358
Comments
For now, if you have the platform.rc file included, remove it. You won't have autocompletion unfortunately. This needs some investigation to support (in the symfony console completion library https://github.com/stecman/symfony-console-completion) |
@dmsmidt since v2.6.0, I suppressed autocompletion error output so that the platform.rc file does not attempt to |
I am fairly new to Fish shell, but support fish autocompletion should be just a matter of providing a man page for the platform cli? @pjcdawkins? @dmsmidt? |
`~/.config/fish/config.fish (line 5): Missing end to balance this if statement source: Error while reading file '/Users/stephenpurkiss/.config/fish/config.fish' This is what I get on install ~ am I to presume it's best just to drop out of fish into bash and use the CLI from there? |
In order to make it work with Fish (on Mac), i added the following to set -gx PATH /Users/username/.platformsh/bin $PATH Inspired by this comment. I don't know what I'm missing by skipping the |
Minor update to the above comment: By running set -g fish_user_paths "/Users/username/.platformsh/bin" $fish_user_paths It seems like both methods work just fine, but I feel better about using the Fish-specific variable because I assume that whoever put it in the node formula knows what they're doing. |
From the Fish official documentation on
So, for Platform CLI:
Example here uses the
|
For clarity, this comment is from me as a user, not me as a Platform employee. I was able to get the cli to work today with minor local changes. I had installed it already under zsh. I took a look at .bashrc and mapped it to Fish: BASH: HOME=${HOME:-'/Users/joey'} BASH: export PATH="$HOME/"'.platformsh/bin':"$PATH" BASH: if [ -f "$HOME/"'.platformsh/shell-config.rc' ]; then . "$HOME/"'.platformsh/shell-config.rc'; fi # shell-config.rc is more of the same as above. shell-config.rc and the associated shell-config-bash.rc are just nice to haves and thus I didn't need to execute it. |
Just an update: like @rinchen mentions, you can now officially use
...which can also be added to |
The Fish Shell (http://fishshell.com/) is used by many developers instead of Bash or ZSH.
Currently the Platform app makes some Linux System crash on startup when the platform CLI is installed and Fish is the default shell.
[RuntimeException]
Cannot generate hook for unknown shell type 'fish'. Available hooks are: bash, zsh
Is it possible to make the CLI work with Fish?
The text was updated successfully, but these errors were encountered: