summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-04-21 10:00:35 +0200
committerxengineering <me@xengineering.eu>2024-04-21 10:00:35 +0200
commite5bcdcafca69d911e22a133496ac2d1a524e12ac (patch)
treee34c178501c1f725fc3145afb168efbe89646c86
parent3af7265e1eb6276f65c46a11e984c62d43b1842d (diff)
downloaddotfiles-e5bcdcafca69d911e22a133496ac2d1a524e12ac.tar
dotfiles-e5bcdcafca69d911e22a133496ac2d1a524e12ac.tar.zst
dotfiles-e5bcdcafca69d911e22a133496ac2d1a524e12ac.zip
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
-rw-r--r--.bashrc1
1 files changed, 1 insertions, 0 deletions
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)