Shell aliases #69156
-
Hi, Is it possible to define shell aliases? That is, I would like to be able to run: I had a look but couldn't find anything and it would be a very useful feature. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, you can use an overlay or add this property to your gpio device tree nodes to define line names for each pin of your port like this: But at present when using the shell you still need to specify the port before the line-name. You can use tab complete to discover what line names are provided by the port once the port is specified in the shell command. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. I had missed the |
Beta Was this translation helpful? Give feedback.
Hi, you can use an overlay or add this property to your gpio device tree nodes to define line names for each pin of your port like this:
https://github.com/zephyrproject-rtos/zephyr/blob/main/boards%2Farm%2Fnrf52840dk_nrf52840%2Fnrf52840dk_nrf52840.dts#L153
But at present when using the shell you still need to specify the port before the line-name. You can use tab complete to discover what line names are provided by the port once the port is specified in the shell command.