update local files
This commit is contained in:
parent
e0ad00a0ca
commit
5b952357f7
2 changed files with 9 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue