diff --git a/zshrc b/zshrc index 06b6960..f57dc55 100644 --- a/zshrc +++ b/zshrc @@ -333,6 +333,16 @@ if __has_command cvs; then } 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 __has_command pkg_chk && alias pkg_chk="MAKEFLAGS= pkg_chk"