Einstellung der Exporte in Fish Shell

Ich habe mehrere PHP-Versionen installiert, und für meine normalen Entwicklung habe ich immer mit PHP 5.5.x installiert via homebrew.

In der fish-shell

 which php & php --version
=> /usr/local/bin/php
=> PHP 5.5.8 (cli) (built: Jan 16 2014 15:58:25)

Den Pfad korrekt ist.

Mein problem ist, dass wenn ich die Entwicklung mit Drupal verwende ich MAMP als eine gebündelte Stapel lamp und MAMP hat seine eigene php-version enthalten. Mein problem ist, dass bei der Verwendung von Drush mit Drupal kann ich nicht setzen Sie die ausführbare PHP-Datei-Pfad als ich normalerweise würde in der bash. Ich will nur drush verwenden die mitgelieferte PHP-version/Programm.

In der bash kann ich dies tun:

# Set Drush root to MAMP PHP
export DRUSH_PHP=/Applications/MAMP/bin/php/php5.5.3/bin/php

Aber das klappt nicht in Fisch-shell, ich habe versucht, mit dieser (ohne Erfolg):

Fisch config Ort: ~/.config/fish/config.fish

set -x DRUSH_PHP=/Applications/MAMP/bin/php/php5.5.3/bin/php

Wenn ich das fishshell mit drush statusich bekomme immer diese:

 Drupal version         :  7.26
 Site URI               :  http://default
 Database driver        :  mysql
 Database username      :  root
 Database name          :  dev-db
 Default theme          :  garland
 Administration theme   :  garland
 PHP executable         :  /usr/local/bin/php
 PHP configuration      :  /usr/local/etc/php/5.5/php.ini
 PHP OS                 :  Darwin
 Drush version          :  6.2.0
 Drush configuration    :
 Drush alias files      :
 Drupal root            :  /Applications/MAMP/htdocs/Sandbox/dev
 Site path              :  sites/default
 File directory path    :  sites/default/files

Und wenn ich den gleichen Befehl in der bourne-shell bekomme ich die richtigen Einstellungen:

  Drupal version                  :  7.26                                        
  Site URI                        :  http://default                              
  Database driver                 :  mysql                                       
  Database username               :  root                                        
  Database name                   :  dev-db                                      
  Database                        :  Connected                                   
  Drupal bootstrap                :  Successful                                  
  Drupal user                     :  Anonymous                                   
  Default theme                   :  bartik                                      
  Administration theme            :  seven                                       
  PHP executable                  :  /Applications/MAMP/bin/php/php5.5.3/bin/php 
  PHP configuration               :  /Applications/MAMP/bin/php/php5.5.3/conf/php.ini                                       
  PHP OS                          :  Darwin                                      
  Drush version                   :  6.2.0                                       
  Drush configuration             :                                              
  Drush alias files               :                                              
  Drupal root                     :  /Applications/MAMP/htdocs/Sandbox/dev       
  Site path                       :  sites/default                               
  File directory path             :  sites/default/files                         
  Temporary file directory path   :  /Applications/MAMP/tmp/php   

So, wie die export-Pfad zu den DRUSH_PHP in Fisch?

InformationsquelleAutor stormpat | 2014-02-07
Schreibe einen Kommentar