Jump to content

percorsi predefiniti


fabio8v

Recommended Posts

potresti provare con un alias in stile linux.

 

 

 

e nella documentazione ufficiale ne fa qualche riferimento:

Update your path

 

You can update your PATH variable for the current session only at the command line, as shown in Get the Flutter SDK. You’ll probably want to update this variable permanently, so you can run flutter commands in any terminal session.

 

 

 

The steps for modifying this variable permanently for all terminal sessions are machine-specific. Typically you add a line to a file that is executed whenever you open a new window. For example:

 

 

 

Determine the directory where you placed the Flutter SDK. You will need this in Step 3.

 

Open (or create) $HOME/.bash_profile. The file path and filename might be different on your machine.

 

Add the following line and change [PATH_TO_FLUTTER_GIT_DIRECTORY] to be the path where you cloned Flutter’s git repo:

 

 

 

content_copy

 

export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin"

 

Run source $HOME/.bash_profile to refresh the current window.

 

Verify that the flutter/bin directory is now in your PATH by running:

Link to comment
Share on other sites

  • Administrators
"fabio8v" post_id="39534" time="1564421399" user_id="166">

supponi che faccia una cartella 'flutter' sotto documenti'...apro il terminale e digito 'flutter'...se non specifico il percorso con la variabile path appare il messaggio 'command not found'

 

prova così

[code]echo 'PATH=$PATH:~/Users/tuo_Users/Documents/flutter_eseguibile' >> ~/.bash_profile

[/code]

Link to comment
Share on other sites

  • Administrators

quello è per esportare la posizione dell'eseguibile

 

se poi non funziona lui stesso è altro discorso

 

poi mettiamo sia in documenti/flutter/bin e l'eseguibile è flutter

 

quando sei in quella cartella non devi scrivere flutter ma ./flutter

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.