From 9252514bbc8788a6146c64099c65283831541234 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Thu, 7 Jul 2022 11:53:21 -0700 Subject: [PATCH] :memo: Added rlast/dlast alias, remove last line of file --- aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/aliases b/aliases index 2d70bf09..8250ff1c 100644 --- a/aliases +++ b/aliases @@ -190,6 +190,7 @@ alias sudoku="sku" #Particularly useful commands more to remember than to use as alias: alias optimalbufsize= 'stat -c "%o"' # followed by filename will give you the optimal read/write BUFSIZE for a file alias {rcrm,rrm}="doas xargs -d\\n rm -r -v" # when piped after locate or find command, recursively removes outputted files +alias {rlast,dlast}="sed -i '$ d'" # removes last line of file alias athena="athena-jot" alias view-in-tty="fim" alias snarfsnarf="snarf"