Wie man einen "platformio" / "pio"-Shortcut auf der Linux-Kommandozeile hinzufügt
Normalerweise, wenn Sie die pio-Executable von PlatformIO verwenden möchten, müssen Sie zuerst die virtuelle Umgebung aktivieren mit
activate_platformio_bash.sh
source ~/.platformio/penv/bin/activateSie können jedoch einfach einen Shortcut mit einem Shell-Alias erstellen:
Für bash:
activate_platformio_zsh.sh
echo -e '\nalias platformio="source ~/.platformio/penv/bin/activate"\n' >> ~/.bashrcFür zsh:
run_platformio.sh
echo -e '\nalias platformio="source ~/.platformio/penv/bin/activate"\n' >> ~/.zshrcBeachten Sie, dass damit die Änderung wirksam wird, Sie Ihre Shell neu starten müssen(oder eine neue Shell öffnen).
Jetzt können Sie ausführen
run_platformio.sh
platformiound Sie haben sofortigen Zugriff auf pio und andere PlatformIO-Tools.
Check out similar posts by category:
PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow