1
1
Fork 0
configs/fish/functions/uart.fish

13 lines
296 B
Fish

switch (uname -s)
case Linux
function uart
if not set -q argv[1]
set argv[1] 115200
end
if not set -q argv[2]
set argv[2] 0
end
screen /dev/ttyUSB"$argv[2]" "$argv[1]"
end
end
end