From e5bcdcafca69d911e22a133496ac2d1a524e12ac Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 21 Apr 2024 10:00:35 +0200 Subject: bash: Add 'zephyr' alias This enables the Zephyr RTOS build system in the current terminal to be able to build Zephyr free standing applications. This alias assumes a setup based on the Zephyr Getting Started Guide [1]. [1]: https://docs.zephyrproject.org/latest/develop/getting_started/index.html --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 8768353..73f7b09 100644 --- a/.bashrc +++ b/.bashrc @@ -38,6 +38,7 @@ function my_xdg_open() { nohup xdg-open "$1" > /dev/null 2>&1 & } alias open=my_xdg_open alias note='"${EDITOR}" "$(mktemp)"' alias nolink='cd $(pwd -P)' +alias zephyr='export ZEPHYR_BASE="${HOME}/zephyrproject/zephyr" && source "${HOME}/zephyrproject/.venv/bin/activate"' # extend PATH by custom scripts (location based on XDG) -- cgit v1.2.3-70-g09d2