1
1
Fork 0

zshrc: Add uart command

This commit is contained in:
Jonathan Schleifer 2021-04-05 20:06:33 +00:00
parent 38649bf520
commit 63caf3a695

10
zshrc
View file

@ -333,6 +333,16 @@ if __has_command cvs; then
} }
fi fi
if __has_command screen; then
case "$(uname -s)" in
Linux)
uart() {
screen /dev/ttyUSB${2:=0} ${1:=115200}
}
;;
esac
fi
# pkgsrc does not like MAKEFLAGS including -j # pkgsrc does not like MAKEFLAGS including -j
__has_command pkg_chk && __has_command pkg_chk &&
alias pkg_chk="MAKEFLAGS= pkg_chk" alias pkg_chk="MAKEFLAGS= pkg_chk"