From 5b952357f72229e3985a1a586c7d29c85652a85f Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 28 Jul 2022 15:57:02 -0500 Subject: [PATCH] update local files --- home/private_bin/executable_ssh-serve-files | 5 +++++ home/private_dot_config/git/config | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/home/private_bin/executable_ssh-serve-files b/home/private_bin/executable_ssh-serve-files index eadac92..fa3f1c4 100644 --- a/home/private_bin/executable_ssh-serve-files +++ b/home/private_bin/executable_ssh-serve-files @@ -51,10 +51,15 @@ while [[ $1 =~ ^- && $1 != "--" ]]; do shift done +URL="http://localhost:$PORT" + echo "connecting to $USER_HOST with port $PORT" echo "serving directory:" echo "->>$DIR" +echo "opening $URL using $BROWSER" +$BROWSER $URL > /dev/null 2>&1 & + # first change directory in case python<3.7 ssh -tL localhost:$PORT:localhost:$PORT $USER_HOST \ "cd $DIR && python3 -m http.server $PORT" diff --git a/home/private_dot_config/git/config b/home/private_dot_config/git/config index 99284b2..9e9e6c7 100644 --- a/home/private_dot_config/git/config +++ b/home/private_dot_config/git/config @@ -24,9 +24,12 @@ co = checkout cob = checkout -b - cmt = "!git commit -m \"$(date)\"" + cmt = !git commit -m \"time: $(date +\"%Y.%m.%d %H:%M:%S\")\" + save = !git add -A && git commit -m \"time: $(date +\"%Y.%m.%d %H:%M:%S\")\" + # list aliases la = "!git config -l | grep alias | cut -c 7-" + test = !git add -A && git commit -m \"$(date)\" [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f