dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 7e8c9f4600b87189d8bbf1392cd3efb98301b7a6
parent 55d0c90f67baf231a04b08687c9036b30a52e1e1
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Fri, 14 Jan 2022 04:12:34 -0500

Add functions to .shrc

Diffstat:
M.shrc | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/.shrc b/.shrc @@ -10,6 +10,18 @@ if [ -d "$HOME/.local/bin/" ]; then export PATH="$HOME/.local/bin:$PATH" fi +# Functions +# Usage: <some_data> | pastesrv <filename> +pastesrv() { + ssh paritybit.ca "cat > /var/www/ftp.paritybit.ca/paste/$1" + echo "https://ftp.paritybit.ca/paste/$1" | tee -a "$HOME/.pastesrvhist" +} +# Usage: watch <interval> <command> +watch() { + interval="$1"; shift + while true; do clear "$@"; sleep "$interval"; done; +} + # Aliases alias ls='ls -lF' alias rm='rm -iv'