#!/usr/bin/env bash
# forked from https://gitlab.com/uoou/dotfiles/-/tree/master/stow/bin/home/drew/.local/bin/lace
-# https://raw.githubusercontent.com/frrobert2/lace/main/lace
+# https://raw.githubusercontent.com/frrobert2/lace/main/laceandterm
# Shows both how many days ago and date
# Modified to work with Debian running Sed 3.7
if [ -z "$XDG_CONFIG_HOME" ];then
#
if [[ "$1" == "nope" ]];then
- cat $tmpfile && rm -f $tmpfile $tmpfile2
+ cat $tmpfile2 && rm -f $tmpfile $tmpfile2
else
- less -RisW $tmpfile && rm -f $tmpfile $tmpfile2
+ less -RisW $tmpfile2 && rm -f $tmpfile $tmpfile2
fi
}
elif [[ "$1" == "subs" ]];then
awk '{print $2" ("$1")"}' $subsfile
elif [[ "$1" == "update" ]];then
- curl https://raw.githubusercontent.com/frrobert2/lace/main/lace > "${BASH_SOURCE[0]}"
+ curl https://raw.githubusercontent.com/frrobert2/lace/main/laceandterm > "${BASH_SOURCE[0]}"
else
now_unix="$(date +'%s')"
if [[ "$1" == "nope" ]];then