zshrc: Add uart command
This commit is contained in:
parent
38649bf520
commit
63caf3a695
1 changed files with 10 additions and 0 deletions
10
zshrc
10
zshrc
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue