From 3a368c07cd38236f024e9a1437de677d26f39f1b Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sun, 7 Aug 2022 14:12:37 +0800 Subject: [PATCH] dfs log --- .zshrc2 | 9 +++++---- tools/post-log.py | 0 2 files changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 tools/post-log.py diff --git a/.zshrc2 b/.zshrc2 index dc9611d..22511ce 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -79,7 +79,7 @@ fi dfs() { case $1 in - update ) $DOTFILES/update.sh ;; + update ) "$DOTFILES/update.sh" ;; force-update ) ( cd "$DOTFILES" git fetch --all @@ -91,13 +91,14 @@ dfs() reset ) antigen reset 1> /dev/null rm -rf $HOME/.antigen - $DOTFILES/install.sh -r + "$DOTFILES/install.sh" -r dfs update - $DOTFILES/install.sh -i + "$DOTFILES/install.sh" -i echo 'Done. Please open a new shell to see the changes.' ;; cd ) cd "$DOTFILES" ;; - * ) echo "unknown command \"$1\". available: update, force-update, reset, cd" ;; + log ) "$DOTFILES/tools/post-log.py" "$2" ;; + * ) echo "unknown command \"$1\". available: update, force-update, version, reset, cd, log" ;; esac } diff --git a/tools/post-log.py b/tools/post-log.py old mode 100644 new mode 100755