Closed lyrixx closed 11 years ago
As a workaround, you can do something like that to make phpswitch stop asking you to install a specific php version:
$ export PROMPT_COMMAND=$(echo $PROMPT_COMMAND | sed 's/phpswitch_dir *//')
This is a feature of phpswitch : whenever you enter a directory containing a .phpswitch.yml
file, phpswitch will search for an installed php that matches the one described in this file. If it can find any php, phpswitch will ask you if you want to install it.
I agree that ATM, phpswitch is a bit boring, asking for this before each prompt. I'll improve this so phpswitch will remember the user's answer in cases he refuses to install the php version.
About you PS1
being broken, I have to find what's happening. I'm using ZSH and there is no problem with it.
Thanks for the report :wink:
I tried to reproduce the bug breaking your prompt but unfortunatelly I did not get it:
Hello. Thanks for your latest patch ;)
So, I have installed phpswitch. IMHO a trace is better than a big text, so:
After sourcing
/opt/phpswitch/.phpswitch/.phpswitchrc
phpswitch ask me, for every command, if I want to install php 5.3.21.Note:
/opt/phpswitch
More over I have a second bug. When I run the following commands, after sourcing the
...rc
:my
PS1
is broken.