samuelcolvin / tictoc.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

toc toc in rust

To test

rustc toc.rs && ./toc 123456

and

rustc tic.rs && ./tic

To build for production

make

To use in bash, include tic and toc in PATH somehow, then add to your .bashrc file:

export PS1='${PSPREFIX}\W $? `toc $TIC` ➤  '
_before () {
  export TIC=`tic`
}
trap '_before' DEBUG

About


Languages

Language:Rust 62.6%Language:Python 15.4%Language:C 11.9%Language:Makefile 10.1%