# fish

quelque astuce avec fish en terminal sous Mac avec apple silicon.

# fish: Unknown command: brew & Laravel installer

Si brew ne fonctionne plus sous fish: 
```fish
fish: Unknown command: brew
```
Excécuté la commande suivante:
```fish
fish_add_path /opt/homebrew/bin
echo "/opt/homebrew/bin/fish" | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fish
```

[stackoverflow](https://stackoverflow.com/questions/66724016/my-fish-is-blind-fish-does-not-recognise-any-commands-after-setting-it-as-defa)
## Laravel intaller
Pour installer laravel installer on procéde comme suit:
```fish
composer global require laravel/installer
fish_add_path /opt/homebrew/bin
```

# PNPM current location différent to target location

Si pnpm affiche current location est différent de target location, <br/>
Ouvrez le **terminal (avec vim)** ou **vscode** editer le fichier:

`/Users/USERNAME/.config/fish/config.fish`

Excécuté la Ajoutet les lignes suivante:
```fish
set -gx PNPM_HOME /Users/USERNAME/Library/pnpm
set -gx PATH "$PNPM_HOME" $PATH
```