dotfiles

Dash Eclipse's dotfiles
git clone git://ezup.dev/dotfiles.git
Log | Files | Refs | README | LICENSE

commit 9f599f0df3a1d4ff18f718fed087324b0fdf0e97
parent bd2ce88a57c1a0827ab4cc2fb20f7227229b949c
Author: Dash Eclipse <dash@ezup.dev>
Date:   Sun, 15 Nov 2020 20:22:56 +0000

Add tb()

Diffstat:
M.zshrc.local | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.zshrc.local b/.zshrc.local @@ -150,6 +150,13 @@ sgview() { | bat -n } +# termbin, fiche +tb() { + [ "$1" = "-i" ] && { local DATA=$(bash -i |& tee /dev/tty); echo "$DATA" | ansifilter | tb; return 0; } + [ -z "$1" ] || { cat "$1" | tb; return 0; } + zmodload zsh/net/tcp; ztcp ezup.dev 9999; cat >&$REPLY; cat <&$REPLY | tee >(xclip -selection clipboard); ztcp -c $REPLY +} + # gnuplot for lists of date in format of $(date +%F) # sed -n 's/^: //p' ~/.zsh_history | cut -d: -f1 | xargs -L1 -I{} date +%F -d @{} | showplot # xbps-query -m | xargs -L1 xbps-query -p install-date | awk '{print $1}' | showplot