add unknown command "version". available: update, force-update, reset, cd and replace tabs with spaces

This commit is contained in:
Dict Xiong 2022-07-29 01:01:00 +08:00
parent 61b7d11977
commit 2fb1cd6599

View File

@ -82,6 +82,7 @@ dfs()
case $1 in case $1 in
update ) $DOTFILES/update.sh ;; update ) $DOTFILES/update.sh ;;
force-update ) (cd "$DOTFILES" && git fetch --all && git reset --hard origin/main && git pull) ;; force-update ) (cd "$DOTFILES" && git fetch --all && git reset --hard origin/main && git pull) ;;
version ) (cd "$DOTFILES" && git rev-parse HEAD) ;;
reset ) reset )
antigen reset 1> /dev/null antigen reset 1> /dev/null
rm -rf $HOME/.antigen rm -rf $HOME/.antigen