diff --git a/dev/scripts/alias.sh b/dev/scripts/alias.sh index 50c3b8b..5dfe387 100755 --- a/dev/scripts/alias.sh +++ b/dev/scripts/alias.sh @@ -5,8 +5,9 @@ alias flash='/home/dev/scripts/flash.sh' alias emulate='/home/dev/scripts/emulate.sh' alias debug='/home/dev/scripts/gdb.sh' alias ody-connect='source /home/dev/scripts/ody-connect.sh' -alias curr-serial='/home/dev/scripts/curr-serial.sh' function curr-serial() { udevadm info "$DEBUG_PORT" -a | sed -n -e 's/^.*ATTRS{serial}=="//p' | head -n 1 | sed 's/.$//' } + +export -f curr-serial