[feat] roam publish no commit first

This commit is contained in:
SouthFox 2024-06-19 00:25:59 +08:00
parent 5b083590ee
commit f7b83dc14d
2 changed files with 4 additions and 4 deletions

View file

@ -151,9 +151,9 @@
(async-shell-command (concat (async-shell-command (concat
"cd " org-hugo-base-dir "cd " org-hugo-base-dir
" && " "git add ." " && " "git add ."
" && " "git commit -m '[post] new post'"
(if (yes-or-no-p "Push now?") (if (yes-or-no-p "Push now?")
(" && " "git push"))) "*Messages*") (concat " && " "git commit -m '[post] new post'"
" && " "git push"))) "*Messages*")
(message "publish nwe post!")) (message "publish nwe post!"))
(defun my/org-roam-creat-node () (defun my/org-roam-creat-node ()

View file

@ -207,9 +207,9 @@
(async-shell-command (concat (async-shell-command (concat
"cd " org-hugo-base-dir "cd " org-hugo-base-dir
" && " "git add ." " && " "git add ."
" && " "git commit -m '[post] new post'"
(if (yes-or-no-p "Push now?") (if (yes-or-no-p "Push now?")
(" && " "git push"))) "*Messages*") (concat " && " "git commit -m '[post] new post'"
" && " "git push"))) "*Messages*")
(message "publish nwe post!")) (message "publish nwe post!"))
(defun my/org-roam-creat-node () (defun my/org-roam-creat-node ()